3 ms·
Most of the processing power in modern 'cycle-perfect' emulators goes into other parts than the CPU and needs to run at a higher frequency than the emulated CPU
by flohofwoe 9y ago
Most of the processing power in modern 'cycle-perfect' emulators goes into other parts than the CPU and needs to run at a higher frequency than the emulated CPU. Usually the video hardware is the most expensive.
80's home computers are essentially lock-stepped multi-processor systems, where the CPU is just one processor, the others are (at least) the audio- and video-generator.
Especially the video generator can become expensive, since it needs at least be fast enough to generate a new line every 64 microseconds, and if the video generator has things like programmable resolution, color palette and sprites (which a lot of 8-bit home computers had), this can be quite a lot of "unpredictable" work per pixel.
Since all those 'special processors' ran synchronized per clock cycle, it is impossible or at least very hard to write efficiently multi-threaded emulators, since they would need to synchronize threads after each emulated clock cycle (it might actually be a bit easier for newer emulated systems where subsystems are often not synchronized that strictly).
Earlier emulators from the 90's often got away by skipping some of the 'cycle perfect' requirements and/or implemented some clever but complicated hacks which didn't really emulate the original hardware, that's why they could still run many games on much slower host hardware.