We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2534a8a commit 824c332Copy full SHA for 824c332
1 file changed
src/main/java/net/caffeinemc/mods/sodium/mixin/features/render/sync/RenderSystemMixin.java
@@ -24,7 +24,7 @@ public static void limitDisplayFPS(int fps) {
24
25
for (; now < target; now = GLFW.glfwGetTime()) {
26
double waitTime = (target - now) - 0.002; // -2ms to account for inaccuracy of timeouts on some operating systems
27
- 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
28
GLFW.glfwWaitEventsTimeout(waitTime); // could be replaced with Thread.sleep(), but i'm not sure if it'd be as precise
29
}
30
0 commit comments