Skip to content

Commit 824c332

Browse files
committed
update comment
1 parent 2534a8a commit 824c332

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/net/caffeinemc/mods/sodium/mixin/features/render/sync/RenderSystemMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static void limitDisplayFPS(int fps) {
2424

2525
for (; now < target; now = GLFW.glfwGetTime()) {
2626
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
27+
if (waitTime >= 0.001) { // pretty sure you can't sleep for less than 1ms without platform-specific code
2828
GLFW.glfwWaitEventsTimeout(waitTime); // could be replaced with Thread.sleep(), but i'm not sure if it'd be as precise
2929
}
3030
}

0 commit comments

Comments
 (0)