this might fix
This commit is contained in:
parent
b0decf958b
commit
a309ebcea3
1 changed files with 4 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue