From 920efa82bf88a30b1180687955b175fc9c3abc1d Mon Sep 17 00:00:00 2001
From: Sven Gothel <sgothel@jausoft.com>
Date: Wed, 19 Apr 2023 20:55:36 +0200
Subject: 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.
---
 src/jogl/classes/com/jogamp/graph/curve/Region.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/jogl/classes/com/jogamp/graph/curve/Region.java')

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 );
         }
     }
 
-- 
cgit v1.2.3