fengb / fundude

Gameboy emulator: Zig -> wasm
https://fengb.github.io/fundude/
MIT License
181 stars 8 forks source link

Frame skip #30

Closed fengb closed 4 years ago

fengb commented 5 years ago

Right now, each GB frame advances per requestAnimationFrame so any frame skips would cause a realtime timing mismatch. In addition, the Gameboy runs at ~59.7hz, which should be ~0.5% slower @ 60hz or ~58.5% slower @ 144hz.

At the bare minimum, we should do a timing diff and advanced the frame by real-time instead of frame-time.

FUNDUDE should also have a "consistent" mode that doesn't frameskip on 60hz, and somehow works well on 144hz.

fengb commented 4 years ago

Closed by 861d005f72255a36dff677101e0d2c11d4e21508