[Papervision3D] AS3 drawing API - filled 2x slower then wireframe
Tim Knip
tim.knip at gmail.com
Fri Jan 12 20:53:40 EST 2007
AS3... using my own engine which is probably lot slower then PV3D...
Maybe I'm doing something stupid:
my engine uses 'coord indices' where a triangle has 3 indices into a
mesh's verts array.
I do:
while( i-- )
{
// flex doesn't seem to slow on this kind of stuff...
face = mesh.faces[i];
p0 = mesh.verts[face[0]];
p1 = mesh.verts[face[1]];
p2 = mesh.verts[face[2]];
t0 = mesh.uv[face[0]];
t1 = mesh.uv[face[1]];
t2 = mesh.uv[face[2]];
// draw, you lazy mother!
drawTri( p0, p1, p2, t0, t1, t2, zeTexture );
}
Anyway: don't pin me on the exact fps, cause my engine is probably flawed...
Still: the performance hit when filling polys is significant (and
makes sense of course, cause filling polys is intensive labour in
itself, guess Flash needs to rasterize!).
Just wondering if we can out-perform Flex when filling textured polys
using code ;-)
T
More information about the Papervision3D
mailing list