summaryrefslogtreecommitdiff
path: root/lwjgl3/src/main/java/coffee/liz/dyl
diff options
context:
space:
mode:
authorElizabeth Alexander Hunt <me@liz.coffee>2026-02-27 20:05:57 -0800
committerElizabeth Alexander Hunt <me@liz.coffee>2026-02-27 20:05:57 -0800
commite9b0b0ddde8475860b8278e5d0b08543c8fe0a4d (patch)
treef463f1b3e4daf5ff885e82e757cc26633f648427 /lwjgl3/src/main/java/coffee/liz/dyl
parent6e2fb9b12870a24f99071ea726d1c49ed57593ad (diff)
downloaddyl-e9b0b0ddde8475860b8278e5d0b08543c8fe0a4d.tar.gz
dyl-e9b0b0ddde8475860b8278e5d0b08543c8fe0a4d.zip
Adding a limit to how much time can be updated to smoothing things out
Diffstat (limited to 'lwjgl3/src/main/java/coffee/liz/dyl')
-rw-r--r--lwjgl3/src/main/java/coffee/liz/dyl/lwjgl3/Lwjgl3Launcher.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/lwjgl3/src/main/java/coffee/liz/dyl/lwjgl3/Lwjgl3Launcher.java b/lwjgl3/src/main/java/coffee/liz/dyl/lwjgl3/Lwjgl3Launcher.java
index 1902322..4aed564 100644
--- a/lwjgl3/src/main/java/coffee/liz/dyl/lwjgl3/Lwjgl3Launcher.java
+++ b/lwjgl3/src/main/java/coffee/liz/dyl/lwjgl3/Lwjgl3Launcher.java
@@ -21,9 +21,7 @@ public class Lwjgl3Launcher {
//// Vsync limits the frames per second to what your hardware can display, and helps eliminate
//// screen tearing. This setting doesn't always work on Linux, so the line after is a safeguard.
configuration.useVsync(true);
- //// Limits FPS to the refresh rate of the currently active monitor, plus 1 to try to match fractional
- //// refresh rates. The Vsync setting above should limit the actual FPS to match the monitor.
- configuration.setForegroundFPS(Lwjgl3ApplicationConfiguration.getDisplayMode().refreshRate + 1);
+ configuration.setForegroundFPS(Lwjgl3ApplicationConfiguration.getDisplayMode().refreshRate);
//// If you remove the above line and set Vsync to false, you can get unlimited FPS, which can be
//// useful for testing performance, but can also be very stressful to some hardware.
//// You may also need to configure GPU drivers to fully disable Vsync; this can cause screen tearing.