mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
- fixed performance with OpenGl acceleration (#4742)
Co-authored-by: Daniel Lage <daniels.nix@gmail.com>
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user