[nostalgia/core] Make clicks trigger 10 refreshes

This commit is contained in:
2022-03-05 11:39:46 -06:00
parent 4966aaffe4
commit 921cb97a14
3 changed files with 22 additions and 6 deletions
+5 -5
View File
@@ -47,11 +47,11 @@ ox::Error run(Context *ctx) noexcept {
draw(ctx);
glfwSwapBuffers(id->window);
if (!ctx->constantRefresh) {
// redraw before sleeping to update things that may have changed due
// to user input this round
draw(ctx);
glfwSwapBuffers(id->window);
glfwWaitEventsTimeout(sleepTime);
if (ctx->uninterruptedRefreshes) {
--ctx->uninterruptedRefreshes;
} else {
glfwWaitEventsTimeout(sleepTime);
}
}
}
// destroy GLFW window