commit 9ae8147
uint
·
2026-08-02 17:48:38 +0000 UTC
parent 2e541a5
change poll rate to window target framerate
1 files changed,
+1,
-1
+1,
-1
1@@ -420,7 +420,7 @@ static void wait_events(void)
2 }
3
4 for (;;) {
5- int ret = poll(&pfd, 1, 16);
6+ int ret = poll(&pfd, 1, 1000 / win_fps);
7 if (ret < 0 && errno == EINTR)
8 continue;
9 break;