I mean with this if we have a cpu instruction that takes 6 cycles and ppu is currently in his scanline at cc 332th.
332 + 6 * 3 = 350;
what is better to let the ppu to execute the next 10 cycles and then return or return, let the cpu execute, add the cycles and execute the cpu?
i mean:
or
i hope to be clear
332 + 6 * 3 = 350;
what is better to let the ppu to execute the next 10 cycles and then return or return, let the cpu execute, add the cycles and execute the cpu?
i mean:
Code:
350 ---------- 341
---10 (ppu function returns)
runcpu()
---10 (ppu function returns)
runcpu()
or
Code:
350 ---------- 341 (ppu function returns)
runcpu() ; 10 ppu cycles + 2 * 5 cpu cycles
------20------ 341
runcpu() ; 10 ppu cycles + 2 * 5 cpu cycles
------20------ 341
i hope to be clear