Yeah, to get this demo right you have to interleave frame-rendering and CPU emulation. My emulator emulated a scanline-worth of CPU cycles and then rendered a single scanline to the video surface, and did no caching scanline-per-scanline. This method seemed to work accurately for nearly all games (pixel-granularity was overkill).
This ability was very important when I was coding my emulator, because I hated the fact that NESticle couldn't run Startropics. :)
Yeah, to get this demo right you have to interleave frame-rendering and CPU emulation. My emulator emulated a scanline-worth of CPU cycles and then rendered a single scanline to the video surface, and did no caching scanline-per-scanline. This method seemed to work accurately for nearly all games (pixel-granularity was overkill).
This ability was very important when I was coding my emulator, because I hated the fact that NESticle couldn't run Startropics. :)
uosasd2 1 year ago