ramapcsx2 / gbs-control

GNU General Public License v3.0
771 stars 110 forks source link

External ClockGen Active Frame Lock Not Saved Across Reset/Restart #524

Closed PabloNewt closed 5 months ago

PabloNewt commented 5 months ago

https://github.com/ramapcsx2/gbs-control/pull/405 is working great for me. But it does not work across restarts or resets (which is pretty annoying) and I have to manually work around it every time.

Having looked at the code I see it is because it relies on the external clock generator to have been detected at startup, yet the functionality needs the external clock gen to be disabled and active frame lock enabled. External clock gen detection is skipped if the setting "Disable External Clock Gen" has been set. Thus we can never keep the new functionality enabled across restarts/resets.

@nyanpasu64 is this intentional to allow people to keep using the legacy active frame lock methods and because your new method isn't considered mainstream enough? If so it would seem better to add this as a new frame lock method instead of the current "overloading" of setting combinations.

nyanpasu64 commented 5 months ago

The new functionality is enabled when external clockgen is enabled (disable is unchecked). It depends on fine frequency adjustments not possible with internal clockgen alone.

PabloNewt commented 5 months ago

Seems I initially got it working by disabling the external clock gen without restarting which leaves it detected and enabled and believed that was the way to turn it on! My mistake. I will close this issue.

PabloNewt commented 5 months ago

Not an issue