chip8-rust icon indicating copy to clipboard operation
chip8-rust copied to clipboard

Wrong sound and delay timer frequency

Open theobori opened this issue 2 years ago • 0 comments

You decrement the delay and the sound timer in Processor::tick.

But the function is managed by only one clock that you have set to 2 milliseconds, it means the has a 500hz clock. But according to this document http://devernay.free.fr/hacks/chip8/C8TECH10.HTM#2.5 it is supposed to have a 60hz clock.

It impacts the gameplay on some games like Space Invaders, the player moves too slowy compared to the ennemies.

theobori avatar Oct 28 '22 14:10 theobori