I've done some profiling and it seems that single place is killing me.
java.lang.System.arraycopy
javax.media.j3d.GeometryArrayRetained.setupMirrorInterleavedColorPointer
javax.media.j3d.GeometryArrayRetained.updateData
javax.media.j3d.GeometryArray.updateData
There is incredible number of arraycopies going on. It seems that one
arraycopy is performed per frame per vertex.
1) Why color data has to be copied out of interleaved array ? This is an
only place visible on prof data, so probably rest of data is used
directly.
2) Is there any way to avoid this copy ?
3) Why copy is done with arraycopy ?? These are only 3 or 4 floats and
even with very good jit support arraycopy setup is probably going to be
more costly than 3-4 direct assignements.
Artur
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".