On Oct 5, 2006, at 7:52 PM, Lars Jensen wrote:
Question: would it substantially improve performance if each particle
were only one triangle instead of two?
(I'm not sure how UVs work yet so I didn't try this myself.)
While it's true that one triangle is faster to update than two, if
you did just use triangles, then in order to fit an image onto that
triangle, the triangle would have to be VERY large. Having large
triangles that are mostly transparent will present you with another
performance bottleneck -- the drawing of transparent objects in front
of others. Plus it'd be a bear to try and center the image in a
single triangle as it's spinning.
An example: in my earlier tests with the trimesh particles, I could
launch about three times as many if the particles were opaque (ie:
non-alpha masked) over transparent. More concretely, I have a test
where I had 2400 opaque particles on-screen with nary a hiccup in
performance.
==
Jeff Quan
jquan at mindspring dot com
http://www.jcquan.com/JQportfolio
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|