diff options
author | Sven Gothel <[email protected]> | 2023-04-19 20:55:36 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-04-19 20:55:36 +0200 |
commit | 920efa82bf88a30b1180687955b175fc9c3abc1d (patch) | |
tree | a65b7f3e06701dec2931e5fa6c588a6e3c8e09af /src/jogl/classes/com/jogamp/graph/curve/Region.java | |
parent | eaa7891dbd430a9fe04f7b7d0e4e4764af4e6aa2 (diff) |
Graph [GL]Region: Use small initial indices/vertices count (640 -> 16), since (huge) text glyph gets always pre-calculated.
Region.countOutlineShape() indices ceiling raised from 60% to 90% of vertices, otherwise gets exceeded too often later on.
Diffstat (limited to 'src/jogl/classes/com/jogamp/graph/curve/Region.java')
-rw-r--r-- | src/jogl/classes/com/jogamp/graph/curve/Region.java | 2 |
1 files changed, 1 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 5201d07b1..ef2bbf494 100644 --- a/src/jogl/classes/com/jogamp/graph/curve/Region.java +++ b/src/jogl/classes/com/jogamp/graph/curve/Region.java @@ -497,7 +497,7 @@ public abstract class Region { final int verticeCount = vertsIn.size() + shape.getAddedVerticeCount(); final int indexCount = trisIn.size() * 3; vertIndexCount[0] += verticeCount; - vertIndexCount[1] += Math.min( Math.ceil(verticeCount * 0.6), indexCount ); + vertIndexCount[1] += Math.min( Math.ceil(verticeCount * 0.9), indexCount ); } } |