Make Turbo/Autofire frame/hz based

I noticed that the current interface for setting up turbo lets the user select the delay between button presses by multiples of 48ms.

A more traditional approach to turbo/autofire is to use hertz, representing button presses per second. This also maps naturally to the refresh rate of the game’s (virtual) display, since games typically poll inputs once per frame. Common autofire rates are values like 30, 20, 15, and 7.5hz.

Advanced users (who probably exclusively use this for shmups) sometimes use a frame-on/frame-off approach, i.e. a button is held for x frames and released for y frames. This is fundamentally the same as using hertz, just displayed/configured differently. Shmups have been known to tie rank (dynamic difficulty) to detected autofire speed so frame-level precision is appreciated for use in that scenario.

Anyways - it’d be a very nice feature to have. I handled the current implementation of autofire for MiSTerFPGA (which works this way) so if I can figure out the codebase I’d be willing to work on it myself if the idea gains traction.

(I poked through the github repo for the latest release and saw some mentions of frame-synchronized autofire so maybe it’s already implemented and I just didn’t find it when playing with controller settings, or it’s unused/unfinished code?)

1 Like

Ah that’s super interesting to know! I simply just went off by input delay, not by frame delay. I could probably look into this a bit further, perhaps I could do a “best of both worlds” solution. Let me have a play around, will let you know!

1 Like

Okay hopefully this will suffice! :slight_smile:

2 Likes