Skip to content
  • Rafael Kitover's avatar
    make speedup/turbo configurable + misc #339 · 16dd5d40
    Rafael Kitover authored
    
    
    Add Speedup / Turbo configuration panel which allows setting the
    throttle or number of frames to skip for when the speed key is pressed
    or turbo is enabled (which just presses the speed key.)
    
    Throttle and frame-skip are mutually exclusive, throttle must be 0 (no
    throttle) when number of frames to skip is non-zero. The dialog controls
    handle this.
    
    This is implemented in the core in GBA.cpp, GB.cpp and ConfigManager.
    
    Two new options are added both in ConfigManager and in the wx options,
    speedup_throttle and speedup_frame_skip, the defaults are:
    
    ```
    speedup_throttle   = 0 (no throttle)
    speedup_frame_skip = 9
    ```
    
    this was the original behavior.
    
    Add support for unsigned ints to wx/opts.cpp for these and for throttle,
    this requires a new validator wxUIntValidator to use them in spin
    controls.
    
    Clean up appearance of the throttle spin control in the General dialog.
    
    Maximum throttle and speedup_throttle is 600, values much over 500 will
    not behave differently from 0 on modern hardware.
    
    Maximum frame skip is 30 at the moment.
    
    Signed-off-by: default avatarRafael Kitover <rkitover@gmail.com>
    16dd5d40