I've run across your problem in the past, and the only solution I was able
to find was to reduce the complexity of the scenegraph. By carefully
constructing your model, you can avoid a too refined scenegraph. Now I'm
able to detach very complicated models in less than 1 sec, while before I
needed more than 2 minutes. The reduction of complexity has lots of other
advantages, for example the memory usage was now half of what was before and
the fps got a boost of more than 20%.

Cheers,

Florin


-----Urspr�ngliche Nachricht-----
Von: Anirban Bhadore [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 1. April 2003 12:27
An: [EMAIL PROTECTED]
Betreff: [JAVA3D] Destroying VirtualUniverse


hi everyone,

It looks like there is no way to dump an universe after use.
VirtualUniverse.removeAllLocales() is generally used to get rid of the
universe which in turn checks and detaches all the branch groups added to
the locales, which takes lot of *time* if the scene graph is complicated and
large.

I was wondering if there is a way to dump the universe without calling these
methods. I have a CAD model viewer application( SDI - single Document
Interface viewer) where when I load the first model I creates the universe
and scene graph as usual. But while loading the second model I want to get
rid of the old scene graph as well as the universe and create afresh the
same stuff for the second model. While deleting/destroying the universe I am
forced to spend lot of time in closing the first model as I have to call
universe.removeAllLocales() etc, sometimes it takes around *3 mins* since my
scene graph has lot of branch groups and its quite complicated, even if the
scene creation took less than a minute. This actually makes the second model
loading very slow.

I am not going to use the universe along with scene graph for the first
model, so I want to get rid of that quickly before loading the second model
in the viewer.

Does anybody have any solution or hint?

thanks
anirban

===========================================================================
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".

Reply via email to