Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8118777

Use TempState rather than instance variables for projtx and viewport needed by LOD helper method

XMLWordPrintable

      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.

            ckyang Chien Yang (Inactive)
            yaow Yao Wang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: