Fix playback stopping during playback due to lack of yields when framerate falls below threshold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8719 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5a1d77de83
commit
02645dbdc1
1 changed files with 2 additions and 0 deletions
|
@ -557,6 +557,7 @@ void sleep (int secs) {
|
|||
if (*rb->current_tick>=count)
|
||||
done=true;
|
||||
}
|
||||
rb->yield();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1292,6 +1293,7 @@ int game_loop(void){
|
|||
}
|
||||
if (end > *rb->current_tick)
|
||||
rb->sleep(end-*rb->current_tick);
|
||||
else rb->yield();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue