From e9b0b0ddde8475860b8278e5d0b08543c8fe0a4d Mon Sep 17 00:00:00 2001 From: Elizabeth Alexander Hunt Date: Fri, 27 Feb 2026 20:05:57 -0800 Subject: Adding a limit to how much time can be updated to smoothing things out --- lwjgl3/src/main/java/coffee/liz/dyl/lwjgl3/Lwjgl3Launcher.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lwjgl3') 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. -- cgit v1.2.3-70-g09d2