-
Bug
-
Resolution: Fixed
-
P3
-
8
The LOD helper function has increased the size of each node by 11%. The suggested fix is to use TempState for:
+ private GeneralTransform3D projtx = new GeneralTransform3D();
+ private Rectangle viewport = new Rectangle();
Also, the following local variable may benefit from using TempState to avoid gc:
+ Affine3D localToSceneTransform = new Affine3D();
Using TempState will avoid extra per-instance memory and gc, while keeping it thread-safe.
+ private GeneralTransform3D projtx = new GeneralTransform3D();
+ private Rectangle viewport = new Rectangle();
Also, the following local variable may benefit from using TempState to avoid gc:
+ Affine3D localToSceneTransform = new Affine3D();
Using TempState will avoid extra per-instance memory and gc, while keeping it thread-safe.