So you set up the geometry by-ref and then just change those vertices
directly without using a GeometryUpdater?
1. To my knowledge this is a big no-no. What if Java3d is in the middle of
reading those data elements and you are half way into changeing them?
2. I don't understand why it would be that much faster. The GeometryUpdater
is just a basic sychonization protection.
3. I still don't understand why you find it slow in the first place. We
have found geometry updater to be pretty fast. We are doing many things
using it including skin and bones animation, 5 nested skydomes, particle
systems, water, etc. In fact when we went from static sky domes to using
the by-ref geometry and GeometryUpdater our frame rate improved
dramatically.
4. The main issue with by-reference geometry right now is that it always
sends the information over to the card every frame even if you have not
changed anything, but they are going to fix it soon.
Dave Yazel
-----Original Message-----
From: Joachim Diepstraten
[mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 7:30 AM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] How to improve performance with GeometryUpdate?
Hi
> As I stated last time I have some major problems with GeometryUpdater
> when there are more shapes. I already wrote an optimizing routine to
> cut down the number of shapes (by joining them together) but that's not
> enough as it already gets rather slow when having more than 5 or 6 shapes
> no matter how many geometrie/vertics the shape contains. This is rather
> annoying.
> Has anyone an idea how to improve performance with GeometryUpdate?
Well I've found an idea myself, the idea is not to use GeometryUpdate at
all! When I transform the vertics directly inside the shape without
calling GeometryUpdate it's hell of a lot faster.
EOF,
J.D.
--
Realtime Raytracer in JAVA
(http://www.antiflash.net/raytrace)
===========================================================================
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".
===========================================================================
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".