I've always wondered why xmame idled so poorly, 'til I found this code and
patched it so:
--- unix/video.c~ Thu Sep 2 01:00:59 1999
+++ unix/video.c Thu Sep 2 03:21:14 1999
@@ -568,7 +568,7 @@
do
{
+ usleep(100); /* sleep for 1/10000 of a second */
curr = uclock();
} while (curr - target < 0);
Now I can concurrently run centiped, gyruss, 1942, and mrdo, all on my KDE
desktop (with xfishtank: 12 fish, 60 bubbles; xneko; top) with each at
-frameskip 9 -nosound, on a 16-bit visual, and with 12% cpu idle
(k6/233mmx.) Or I can run 12 copies of MrDo. :) *smoothly*
This patch messes up autoframeskip (okay with no sound; seeks 7-9) but
works *beautifully* with manual frameskip + throttling.
I'm working on a better frameskip scenario that won't have this problem,
or the dropped-frames-when-sound-is-enabled-and-frameskip-exceeds-7 bug.
-Wil
William Barath, AKA WseM http://www.victoria.tc.ca/~wi534
TP7 Programmers: Check out my FREE preemptive Threads Unit!
DJGPP Programmers: Check out my FREE realtime Fractal Zoomer!
Emulation Coderz: Check out my LAME-O Apple ][+ Emulator! ;)
---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]