[nostalgia/core] Make clicks trigger 10 refreshes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user