mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
- fixed performance with OpenGl acceleration (#4742)
Co-authored-by: Daniel Lage <daniels.nix@gmail.com>
This commit is contained in:
@@ -47,6 +47,9 @@ public final class Main {
|
|||||||
//Turn off the Java 2D system's use of Direct3D to improve rendering speed (particularly when Full Screen)
|
//Turn off the Java 2D system's use of Direct3D to improve rendering speed (particularly when Full Screen)
|
||||||
System.setProperty("sun.java2d.d3d", "false");
|
System.setProperty("sun.java2d.d3d", "false");
|
||||||
|
|
||||||
|
//Turn on OpenGl acceleration to improve performance
|
||||||
|
System.setProperty("sun.java2d.opengl", "true");
|
||||||
|
|
||||||
//setup GUI interface
|
//setup GUI interface
|
||||||
GuiBase.setInterface(new GuiDesktop());
|
GuiBase.setInterface(new GuiDesktop());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user