Open aL4ix opened 6 years ago
@fuumarumota I pushed some WIP for this in the apu branch only in the 8Tunes project. I removed all the floating point logic to calculate time and undersampling and replaced it with precise integer logic. Now i'm seeing that even after I'm calling the CPU with the exact cycles i'm getting different numbers in the cpu cycles and apu cycles. Both cpu cycles count and apu cycles count are the same btw.
I'm gonna get my lazy-ass to work on "our precious" soon enough (XD). I'll check your latest code and verify if i'm missing places where the APU cycles should / shouldn't run. For example, i'm not entirely sure of what should happen while the PPU Sprite DMA is running. It's supposed that the CPU is stunned until the transfer finishes, but should the APU be stunned as well? We'll see. Time to get my hands dirty again.
Yay! tell me when so i can explain you all the info it's being printed. :+1: BTW we are running more cycles than expected!
@fuumarumota Moved the code to a new branch called precisetime
Right now time is looking good, but i think we got some issues with audio because we are not handling time fine enough to be totally precise with time and cycles.