libretro / snes9x2005

Snes9x 2005. Port of SNES9x 1.43 for libretro (was previously called CAT SFC).
Other
15 stars 32 forks source link

Ensure frameskip counter is reset when a frame is rendered #81

Closed jdgleaver closed 3 years ago

jdgleaver commented 3 years ago

When frame skipping is enabled, the core uses a counter to limit the number of consecutive frames that can be dropped (to prevent the display from hanging indefinitely). This counter should be reset each time that a frame is actually rendered, but due to a small oversight it is not (apologies!). This means it is possible for a frame that should be dropped to be rendered instead, once every 30 times that a frame skip is requested. Most users probably wouldn't notice this, but it's incorrect behaviour...

This trivial PR fixes the issue.