Chetan Chauhan wrote:
Hello,
When using Link/SharedGroup, I noticed that while adding branch graph, the 'setLive()' for a SharedGroup is called as many times as the number of Links pointing to this SharedGroup.
For example:
I have one SharedGroup contaning 100 Shape3Ds and there are 200 Links pointing to this single SharedGroup. During branch graph addition, 'setLive()' for SharedGroup is called 200 times instead of once, and hence it results into 200 x 100 times call of 'setLive()' for Shape3Ds contained inside SharedGroup.
I am not sure if this is expected behaviour. Because as number of Links grows, the multiplication effect makes it much slower than had I cloned the data. Ofcourse the memory consumed was much less as compared to cloning.
Yes, this is expected behavior.
I am using JRE 1.4.1 and Java3D 1.3.1 Beta
-Chetan Chauhan
Still using J3D v1.3.1 beta ?
Try upgrade to v1.3.1 release which fix a SharedGroup bug
4794994 - Memory leak when SharedGroup removed
- Kelvin
----------------
Java 3D Team
Sun Microsystems Inc.
===========================================================================
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".