Re: [Tuxnes-devel] Future of TuxNES
Brought to you by:
tmmm
|
From: Jim U. <ji...@3e...> - 2001-04-19 02:49:15
|
At 09:32pm on 2001 April 18, Mike Melanson did write:
> - figure out why TuxNES insists on using all of the CPU when you
> pause the emulator and hopefully fix it. I've received a number of
> complaints on this one; does anyone know why this happens? I haven't yet
> investigated.
Have a look at any of the renderers, for example x11.c.
There is code in UpdateDisplay that does
do {
/* handle input, perhaps pauses emulator */
} while (sleep || renderer_data.pause_display);
Therefore it just spins in this loop until the emulator
is unpaused. When pause is in effect, it should
probably switch from polling to blocking on events,
or at least call usleep() to lessen the CPU load.
Jim
--
``The coolest thing is being able to get my e-mail read to me, like
I'm the queen,'' said Jen Bekman, 31, an AOLbyPhone user in New York
who develops Web content for streaming video.
-- http://www0.mercurycenter.com/svtech/news/breaking/ap/docs/844798l.htm
ji...@3e... / 0x43340710 / 517B C658 D2CB 260D 3E1F 5ED1 6DB3 FBB9 4334 0710
|