libretro / px68k-libretro

Portable SHARP X68000 Emulator for Libretro
http://hissorii.blog45.fc2.com
GNU General Public License v2.0
45 stars 41 forks source link

Timing fixes. #68

Closed Tatsuya79 closed 6 years ago

Tatsuya79 commented 6 years ago

Testing G-Sync by using the core at x1 speed I noticed some problems.

The sound was popping a lot at 55.45Hz so I tried to change it with different values I could find online. It's fine with 55.5Hz. That will maybe fix some crackles at different monitor refresh settings but that sadly doesn't help for stuck notes or overwritten samples we can seldom still hear.

Also switching to 59.94Hz wasn't working at x1, it stayed at 55.45Hz with the sound getting out of sync completely. Using RETRO_ENVIRONMENT_SET_SYSTEM_AV_INFO fixes that. It will cause a slight video re-init but it's the standard way to change the refresh rate in libretro.