aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-11-19 21:37:30 +0100
committerdec05eba <dec05eba@protonmail.com>2021-11-19 21:37:30 +0100
commite1431633f7eb33041330b8bf01a5954e747c60a1 (patch)
treef97c92da301bea25ccbd9c93bad6f56fc88c3e79 /src
parent838831e13a9c6b3114d4d9ec0417f04dde47b1ac (diff)
Better document window_set_framerate_limit
Diffstat (limited to 'src')
-rw-r--r--src/window/window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window/window.c b/src/window/window.c
index 25e3ff2..8ed68e7 100644
--- a/src/window/window.c
+++ b/src/window/window.c
@@ -701,7 +701,7 @@ void mgl_window_display(mgl_window *self) {
if(self->frame_time_limit > 0.000001) {
double time_left_to_sleep = self->frame_time_limit - mgl_clock_get_elapsed_time_seconds(&self->frame_timer);
- if(time_left_to_sleep > 0.0)
+ if(time_left_to_sleep > 0.000001)
usleep(time_left_to_sleep * 1000000.0);
mgl_clock_restart(&self->frame_timer);
}