shochu
Junior Devvie  
Java games rock!
|
 |
«
Reply #1 - Posted
2003-12-19 16:51:50 » |
|
If you are attempting to change the scenegraph but constantly attaching and detaching branchgroups things are going to get really slow.
A better way to do it (not sure if it's the best way but definately better than the above method) is to load everything that you want at the beginning and then set the branchgroups you don't want rendered using the setLive() method.
For instance, I split my terrain up into blocks and for blocks that I don't need rendered I call setLive(false);. Then when the blocks needs to be rendered I call setLive(true);
I'm not positive this is the best way to do it, but it is definately faster than attaching detaching the entire branchgroups which is what i tried previously.
Let me know if that speeds anything up.
|