1
0
Fork 0
forked from len0rd/rockbox

quake: add a bunch more yield calls

Probably a bit too many, but good for making sound not skip.

Change-Id: I6657dcb4e8e7bb32c6550e2c5e3cee74d79b9ebe
This commit is contained in:
Franklin Wei 2019-08-05 21:00:02 -04:00 committed by Solomon Peachy
parent 54b3b6f797
commit 655d201cf3
2 changed files with 12 additions and 0 deletions

View file

@ -696,8 +696,14 @@ void R_DrawParticles (void)
break;
}
rb->yield();
int cnt = 0;
for (p=active_particles ; p ; p=p->next)
{
if(!(++cnt%50))
rb->yield();
for ( ;; )
{
kill = p->next;