diff options
author | Sven Gothel <[email protected]> | 2014-02-27 23:59:40 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-02-27 23:59:40 +0100 |
commit | 34aebbf54491b8f7e98bee3f45f8b58b817a6db5 (patch) | |
tree | d41a9a1195048bb4117f9e477e6914ed5ff66c82 /src | |
parent | bd43319992d02f8194dce94587de476ee421891b (diff) |
Bug 802: Graph TextRenderer Performance Part-3: Reuse 'float[] coordsEx' storage, ease on GC
Diffstat (limited to 'src')
-rw-r--r-- | src/jogl/classes/com/jogamp/graph/curve/Region.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/curve/Region.java b/src/jogl/classes/com/jogamp/graph/curve/Region.java index d23de2077..9d6e339f2 100644 --- a/src/jogl/classes/com/jogamp/graph/curve/Region.java +++ b/src/jogl/classes/com/jogamp/graph/curve/Region.java @@ -142,8 +142,9 @@ public abstract class Region { return Region.isNonUniformWeight(renderModes); } + final float[] coordsEx = new float[3]; + private void pushNewVertexImpl(final Vertex vertIn, final AffineTransform transform) { - final float[] coordsEx = new float[3]; if( null != transform ) { final float[] coordsIn = vertIn.getCoord(); transform.transform(coordsIn, coordsEx); |