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:
Brandon Low 2006-02-17 20:10:31 +00:00
parent 5a1d77de83
commit 02645dbdc1

View file

@ -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();
}
}