aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-05-04 03:30:03 +0200
committerSven Gothel <[email protected]>2023-05-04 03:30:03 +0200
commitf702eb7a5dcb1b5ede5a48ba17b558991285220f (patch)
treef937fdb0bae0017fc4ea37d2c34aa85bb8b0340b /src/jogl/classes/com/jogamp
parente3e58836fc6578aa8814731c9b15581b3e0cb580 (diff)
Graph GLRegion.growBuffer(..): Disable debug output (static final flag)
Diffstat (limited to 'src/jogl/classes/com/jogamp')
-rw-r--r--src/jogl/classes/com/jogamp/graph/curve/opengl/GLRegion.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/curve/opengl/GLRegion.java b/src/jogl/classes/com/jogamp/graph/curve/opengl/GLRegion.java
index 9117d1aee..668223f25 100644
--- a/src/jogl/classes/com/jogamp/graph/curve/opengl/GLRegion.java
+++ b/src/jogl/classes/com/jogamp/graph/curve/opengl/GLRegion.java
@@ -228,6 +228,8 @@ public abstract class GLRegion extends Region {
growCount = 0;
}
+ private static final boolean DEBUG_BUFFER = false;
+
@Override
public final boolean growBuffer(final int verticesCount, final int indicesCount) {
boolean grown = false;
@@ -235,8 +237,10 @@ public abstract class GLRegion extends Region {
System.err.printf("XXX Buffer grow - Indices: %d < ( %d = %d + %d ); Status: %s%n",
curIndicesCap, indicesBuffer.elemPosition() + indicesCount, indicesBuffer.elemPosition(), indicesCount, indicesBuffer.elemStatsToString());
indicesBuffer.growIfNeeded(indicesCount * indicesBuffer.getCompsPerElem());
- System.err.println("grew.indices 0x"+Integer.toHexString(hashCode())+": "+curIndicesCap+" -> "+indicesBuffer.getElemCapacity()+", "+indicesBuffer.elemStatsToString());
- Thread.dumpStack();
+ if( DEBUG_BUFFER ) {
+ System.err.println("grew.indices 0x"+Integer.toHexString(hashCode())+": "+curIndicesCap+" -> "+indicesBuffer.getElemCapacity()+", "+indicesBuffer.elemStatsToString());
+ Thread.dumpStack();
+ }
curIndicesCap = indicesBuffer.getElemCapacity();
grown = true;
}
@@ -244,7 +248,9 @@ public abstract class GLRegion extends Region {
System.err.printf("XXX Buffer grow - Verices: %d < ( %d = %d + %d ); Status: %s%n",
curVerticesCap, gca_VerticesAttr.elemPosition() + verticesCount, gca_VerticesAttr.elemPosition(), verticesCount, gca_VerticesAttr.elemStatsToString());
vpc_ileave.growIfNeeded(verticesCount * vpc_ileave.getCompsPerElem());
- System.err.println("grew.vertices 0x"+Integer.toHexString(hashCode())+": "+curVerticesCap+" -> "+gca_VerticesAttr.getElemCapacity()+", "+gca_VerticesAttr.elemStatsToString());
+ if( DEBUG_BUFFER ) {
+ System.err.println("grew.vertices 0x"+Integer.toHexString(hashCode())+": "+curVerticesCap+" -> "+gca_VerticesAttr.getElemCapacity()+", "+gca_VerticesAttr.elemStatsToString());
+ }
curVerticesCap = vpc_ileave.getElemCapacity();
grown = true;
}