aboutsummaryrefslogtreecommitdiffstats
path: root/src/graphui/classes/com/jogamp/graph/ui/gl/Scene.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-03-22 11:07:38 +0100
committerSven Gothel <[email protected]>2023-03-22 11:07:38 +0100
commitf283aa2c7b64100de62a10c0e0aa48911956f222 (patch)
treee7cf1aa4fab70ad945a5a79dc887f1c24f6d9294 /src/graphui/classes/com/jogamp/graph/ui/gl/Scene.java
parent5bdc5f947353d59930609daad5e223764a1e12e4 (diff)
GraphUI Scene: getStatusText(..) drop unset values, be more semantic sensitive (msaa -> smsaa)
Diffstat (limited to 'src/graphui/classes/com/jogamp/graph/ui/gl/Scene.java')
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/gl/Scene.java24
1 files changed, 19 insertions, 5 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/gl/Scene.java b/src/graphui/classes/com/jogamp/graph/ui/gl/Scene.java
index 038d1d877..e40152a02 100644
--- a/src/graphui/classes/com/jogamp/graph/ui/gl/Scene.java
+++ b/src/graphui/classes/com/jogamp/graph/ui/gl/Scene.java
@@ -938,11 +938,25 @@ public final class Scene implements GLEventListener {
}
final String modeS = Region.getRenderModeString(renderModes);
final GLCapabilitiesImmutable caps = glad.getChosenGLCapabilities();
- return String.format("%03.1f/%03.1f fps, %.1f ms/f, v-sync %d, dpi %.1f, %s-samples %d, q %d, msaa %d, blend %b, alpha %d",
- lfps, tfps, td, glad.getGL().getSwapInterval(), dpi, modeS, getSampleCount(), quality,
- caps.getNumSamples(),
- getRenderState().isHintMaskSet(RenderState.BITHINT_BLENDING_ENABLED),
- caps.getAlphaBits());
+ final String sampleCountStr1, sampleCountStr2, blendStr;
+ if( Region.isVBAA(renderModes) || Region.isMSAA(renderModes) ) {
+ sampleCountStr1 = "-samples "+getSampleCount();
+ } else {
+ sampleCountStr1 = "";
+ }
+ if( caps.getNumSamples() > 0 ) {
+ sampleCountStr2 = ", smsaa "+caps.getNumSamples();
+ } else {
+ sampleCountStr2 = "";
+ }
+ if( getRenderState().isHintMaskSet(RenderState.BITHINT_BLENDING_ENABLED) ) {
+ blendStr = ", blend";
+ } else {
+ blendStr = "";
+ }
+ return String.format("%03.1f/%03.1f fps, %.1f ms/f, vsync %d, dpi %.1f, %s%s%s, q %d%s, a %d",
+ lfps, tfps, td, glad.getGL().getSwapInterval(), dpi, modeS, sampleCountStr1, sampleCountStr2,
+ quality, blendStr, caps.getAlphaBits());
}
/**