diff --git a/src/main/java/net/caffeinemc/mods/sodium/mixin/features/render/sync/RenderSystemMixin.java b/src/main/java/net/caffeinemc/mods/sodium/mixin/features/render/sync/RenderSystemMixin.java index 81e73f556e..02f00e8d22 100644 --- a/src/main/java/net/caffeinemc/mods/sodium/mixin/features/render/sync/RenderSystemMixin.java +++ b/src/main/java/net/caffeinemc/mods/sodium/mixin/features/render/sync/RenderSystemMixin.java @@ -24,7 +24,7 @@ public static void limitDisplayFPS(int fps) { for (; now < target; now = GLFW.glfwGetTime()) { double waitTime = (target - now) - 0.002; // -2ms to account for inaccuracy of timeouts on some operating systems - if (waitTime >= 0.001) { // pretty sure you can't sleep for less than 1ms on Windows or Linux + if (waitTime >= 0.001) { // pretty sure you can't sleep for less than 1ms without platform-specific code GLFW.glfwWaitEventsTimeout(waitTime); // could be replaced with Thread.sleep(), but i'm not sure if it'd be as precise } }