this might fix

This commit is contained in:
Nishi 2026-01-12 17:39:21 +09:00
commit a309ebcea3
Signed by: nishi
GPG key ID: 27EF69B208EB9343

View file

@ -122,6 +122,8 @@ void GSEngineLoop(GSEngine engine) {
if(wait_actually) {
int diff = (wait - more) - (engine->param->get_tick() - t);
printf("%d %d\n", more, diff);
if(diff > 0) {
engine->param->sleep(diff);
}
@ -129,6 +131,8 @@ void GSEngineLoop(GSEngine engine) {
more -= diff;
if(more < 0) more = 0;
if(more > (wait * 10)) more = 0;
t = engine->param->get_tick();
}
}