changeset 205:57ec651ac031 trunk

[svn] - yield back to the scheduler after processing a frame (maybe this will make paranormal be nicer.)
author nenolod
date Fri, 03 Nov 2006 14:54:55 -0800
parents bcdd1cce1a0f
children f258fef5c5fc
files ChangeLog src/paranormal/plugin.c
diffstat 2 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Nov 03 14:23:17 2006 -0800
+++ b/ChangeLog	Fri Nov 03 14:54:55 2006 -0800
@@ -1,3 +1,16 @@
+2006-11-03 22:23:17 +0000  Kiyoshi Aman <kiyoshi.aman@gmail.com>
+  revision [408]
+  
+  Mmm..Blood....--This line, and those below, will be ignored--
+  
+  A    presets/aerdan_-_bloody_vortex.pnv
+  M    presets/Makefile
+  
+  trunk/src/paranormal/presets/Makefile                   |    3 -
+  trunk/src/paranormal/presets/aerdan_-_bloody_vortex.pnv |   33 ++++++++++++++++
+  2 files changed, 35 insertions(+), 1 deletion(-)
+
+
 2006-11-03 21:52:09 +0000  William Pitcock <nenolod@nenolod.net>
   revision [406]
   - include drawing.h
--- a/src/paranormal/plugin.c	Fri Nov 03 14:23:17 2006 -0800
+++ b/src/paranormal/plugin.c	Fri Nov 03 14:54:55 2006 -0800
@@ -14,6 +14,7 @@
 #include <memory.h>
 #include <math.h>
 #include <setjmp.h>
+#include <unistd.h>
 
 #include <glib.h>
 #include <glib/gi18n.h>
@@ -150,6 +151,10 @@
       SDL_mutexP (config_mutex);
       pn_render ();
       SDL_mutexV (config_mutex);
+
+#ifdef _POSIX_PRIORITY_SCHEDULING
+      sched_yield();
+#endif
     }
 
   /* Just in case a pn_quit () was called in the loop */