- fixed performance with OpenGl acceleration (#4742)

Co-authored-by: Daniel Lage <daniels.nix@gmail.com>
This commit is contained in:
thedevnull
2024-02-26 05:50:12 -03:00
committed by GitHub
parent dbcf474030
commit bada43b901

View File

@@ -46,6 +46,9 @@ public final class Main {
//Turn off the Java 2D system's use of Direct3D to improve rendering speed (particularly when Full Screen)
System.setProperty("sun.java2d.d3d", "false");
//Turn on OpenGl acceleration to improve performance
System.setProperty("sun.java2d.opengl", "true");
//setup GUI interface
GuiBase.setInterface(new GuiDesktop());