andrew-hoffman / halfnes

An accurate NES/Famicom emulator
GNU General Public License v3.0
163 stars 65 forks source link

Scrolling so jerking on non-NTSC systems #14

Open eugene-s-nesdev opened 9 years ago

eugene-s-nesdev commented 9 years ago

Scrolling so jerking on PAL and Dendy/Hybrid systems even if "Sleep Between Frames" is ON. Other emulators does it more smoother (even at 60Hz physical display refresh rate).

andrew-hoffman commented 9 years ago

While it does look better with the display set to 50 hz, you're still right. I think it has something to do with the length of the audio buffer as that's still set in 60ths of a second

andrew-hoffman commented 9 years ago

Well I fixed that much, and now 50 fps games look as good on a 50 hz display as 60 fps ones do on a 60 hz display. That's some progress though I can't do much more without a proper vsync. Maybe there are some other undiscovered problems with deriving so much of my timing from the audio buffer in the way I do.