Flash viewer - skip frames when not on time => faster playback, display frameLoss in debugMode

Stub for HW accelerated Graphics2D (VolatileImage, opengl, etc.)
This commit is contained in:
Jindra Petřík
2016-02-27 10:31:24 +01:00
parent 462d7a297f
commit 9cd8a79c68
4 changed files with 291 additions and 97 deletions

View File

@@ -1484,6 +1484,16 @@ public class Main {
System.err.println("Error: Your system does not support Graphic User Interface");
exit();
}
System.setProperty("sun.java2d.d3d", "false");
System.setProperty("sun.java2d.noddraw", "true");
if (Configuration.hwAcceleratedGraphics.get()) {
System.setProperty("sun.java2d.opengl", Configuration._debugMode.get() ? "True" : "true");
} else {
System.setProperty("sun.java2d.opengl", "false");
}
if (Configuration.useRibbonInterface.get()) {
View.setLookAndFeel();
} else {