libretro / beetle-pce-fast-libretro

Standalone fork of Mednafen PCE Fast to libretro
GNU General Public License v2.0
29 stars 52 forks source link

Turbo option is broken. #135

Closed bslenul closed 4 years ago

bslenul commented 4 years ago

Hey, turbo seems to not work properly (tested on W10, on a Linux VM and on a SNESC):

I bisected already, looks like the bug started with this commit: 7e92d19a80bde4827dfd0927b016f38a85e92701.

The previous commit (614b6c39a9dc32428126d134606db44a9f015408) works as intended: option ON you get the notifications and turbo is actually working when you press X/Y, option OFF X/Y doesn't do anything.

edit:
And btw, it's not only the toggle option that is not working, if I set P1 Turbo I and P1 Turbo II to ON, same results, it doesn't work.

Also, just tested with the non-fast version of the core and everything seems to work fine in this one.

negativeExponent commented 4 years ago

turbo loop in this core it generally problematic even in the past with some games. these has been fixed in other pce/sgx cores. and the related core-option needs cleanup as well.

the quick fix is to change both these core option keys to match both in libretro.cpp and libretro_core_options.h "pce_turbo_delay" "pce_turbo_toggling"

these should be remove too as this will reset turbo button states when re-entering quick-menu: pce_pX_turbo_I_enable pce_pX_turbo_II_enable etc

KMFDManic commented 4 years ago

Thanks for the fix @negativeExponent :)

negativeExponent commented 4 years ago

Thanks for the fix @negativeExponent :)

i have not sent a fix. just pointing out the problem. some1 has to make a PR on it

on a related note, the pce suffers the same turbo button issue that this core has