diff options
author | Franklin Wei <franklin@rockbox.org> | 2019-08-05 21:00:02 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-10-27 10:23:57 -0400 |
commit | 655d201cf31a852000b63887f291426b7f8c397b (patch) | |
tree | 47d3cad452ff86d5b050931e60a1ce02c15a2f5c /apps/plugins/sdl/progs/quake/r_part.c | |
parent | 54b3b6f7978b6ffe4fbba8ad8fec73480ca45a4d (diff) | |
download | rockbox-655d201cf31a852000b63887f291426b7f8c397b.tar.gz rockbox-655d201cf31a852000b63887f291426b7f8c397b.zip |
quake: add a bunch more yield calls
Probably a bit too many, but good for making sound not skip.
Change-Id: I6657dcb4e8e7bb32c6550e2c5e3cee74d79b9ebe
Diffstat (limited to 'apps/plugins/sdl/progs/quake/r_part.c')
-rw-r--r-- | apps/plugins/sdl/progs/quake/r_part.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugins/sdl/progs/quake/r_part.c b/apps/plugins/sdl/progs/quake/r_part.c index 8c0dcff5e8..4895a828c0 100644 --- a/apps/plugins/sdl/progs/quake/r_part.c +++ b/apps/plugins/sdl/progs/quake/r_part.c | |||
@@ -696,8 +696,14 @@ void R_DrawParticles (void) | |||
696 | break; | 696 | break; |
697 | } | 697 | } |
698 | 698 | ||
699 | rb->yield(); | ||
700 | |||
701 | int cnt = 0; | ||
702 | |||
699 | for (p=active_particles ; p ; p=p->next) | 703 | for (p=active_particles ; p ; p=p->next) |
700 | { | 704 | { |
705 | if(!(++cnt%50)) | ||
706 | rb->yield(); | ||
701 | for ( ;; ) | 707 | for ( ;; ) |
702 | { | 708 | { |
703 | kill = p->next; | 709 | kill = p->next; |