Adventus, on 25 October 2009 - 10:07 PM, said:
The way I do it is to emulate a frame, and end up with a buffer which contains the graphics for that frame. Signal a low-priority thread that a new buffer of graphics are ready for rendering, and then repeat.
The low-priority rendering thread picks up the new buffer and starts work on drawing the display. As it's low-priority, it only runs while the main emulation thread is sleeping (waiting for sound/interrupt synchronisation or whatever) - and this means that if the emulation thread needs CPU, the renderer doesn't steal it. Instant Frameskip.
Disclaimer: I have no idea if this will work, I only know that it does for me, but I'm not emulating an N64.
D.

Sign In
Register
Help

MultiQuote
