Skip to content

Commit

Permalink
enforce fps limiter
Browse files Browse the repository at this point in the history
  • Loading branch information
Draradech committed Aug 31, 2024
1 parent 01426e8 commit 2ce1d46
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/modules/out_5a_75e.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,10 @@ int render(void)
oscore_time elapsed = now - last;
if (last != 0 && elapsed < 15000)
{
wait_until(1337, last + 15000);
while(wait_until(1337, last + 15000) >= last + 15000)
{
;
}
last += 15000;
}
else
Expand Down

0 comments on commit 2ce1d46

Please sign in to comment.