From 824c33242f87b6659525ed1c513a363ff2dbc5b2 Mon Sep 17 00:00:00 2001 From: theyareonit Date: Wed, 24 Jul 2024 16:20:15 +0200 Subject: [PATCH] update comment --- .../sodium/mixin/features/render/sync/RenderSystemMixin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } }