ChaoticWyrme / chip8-rs

A chip8 emulator made in rust
https://chaoticwyrme.github.io/chip8-rs/
MIT License
1 stars 0 forks source link

Games run too fast / FPS Limiter #4

Open ChaoticWyrme opened 1 year ago

ChaoticWyrme commented 1 year ago

Right now the snake and Super-Pong run way too fast, how can we fix this?

ChaoticWyrme commented 1 year ago

According to this article: https://laurencescotford.com/chip-8-on-the-cosmac-vip-drawing-sprites/ we may want to wait for the render, and limit the render speed. Essentially, you wait to draw a sprite until a frame is rendered. Maybe to be simpler, wait for 1/60 of a second when executing a draw instruction.