From 655d201cf31a852000b63887f291426b7f8c397b Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Mon, 5 Aug 2019 21:00:02 -0400 Subject: quake: add a bunch more yield calls Probably a bit too many, but good for making sound not skip. Change-Id: I6657dcb4e8e7bb32c6550e2c5e3cee74d79b9ebe --- apps/plugins/sdl/progs/quake/r_part.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/plugins/sdl/progs/quake/r_part.c') 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) break; } + rb->yield(); + + int cnt = 0; + for (p=active_particles ; p ; p=p->next) { + if(!(++cnt%50)) + rb->yield(); for ( ;; ) { kill = p->next; -- cgit v1.2.3