You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Load millions of TransformGroup objects into specific Locales in two-level hierarchy.
- Locale
- TransformGroupRetained X
- GroupRetained
- TransformGroupRetained A... (millions of object in this level)
- TransformGroupRetained B... (millions of object in this level)
Call VirtualUniverse.removeAllLocales. We will find the $O(N^2)$ time during release resource.
// in TransformGroupRetained.@OverridevoidclearLive(SetLiveStates) {
Targets[] savedTransformTargets = null;
savedTransformTargets = s.transformTargets;
// no need to gather targets from tg in clear lives.transformTargets = null;
if (refCount - s.refCount <= 0) { // predict live to prevent children update.childTransformLinks.clear();
}
super.clearLive(s);
...
The text was updated successfully, but these errors were encountered:
Scenario
TransformGroup
objects into specificLocales
in two-level hierarchy.VirtualUniverse.removeAllLocales
. We will find theReason
java3d-core/src/javax/media/j3d/TransformGroupRetained.java
Line 664 in baff3df
TransformGroupRetained.removeNodeData
will call parentTransformGroupRetained X
childTransformLinks.remove
step by step.Possible Solution
Predict the live state from parent class
NodeRetained
.java3d-core/src/javax/media/j3d/NodeRetained.java
Line 720 in baff3df
java3d-core/src/javax/media/j3d/TransformGroupRetained.java
Line 745 in baff3df
The text was updated successfully, but these errors were encountered: