3 ms·
I love this. > This together with the overhead of emulating an 8-bit CPU on a 32-bit CPU made it necessary to overclock the rp2040 from its default 125 MHz5 to
by anyfoo 4y ago
I love this.
> This together with the overhead of emulating an 8-bit CPU on a 32-bit CPU made it necessary to overclock the rp2040 from its default 125 MHz5 to 225 MHz. The rp2040 can usually handle this without any problems, but still I would love to see if someone can improve the efficiency of my code to dial this back a bit.
It wasn't clear to me if this was because of the code, or because of the environment.
For the latter it helps to have a dedicated chip doing the emulation, without being burdened by a multitasking OS that rudely interrupts you at all times. Does not have to be an FPGA implementing the Gameboy CPU, could also be a normal boring CPU that dedicatedly does the emulation (it has to be fast enough, but >200MHz seems overkill).
Alternatively, maybe proper use of realtime threads helps already.