add comments for later about triple buffering

This commit is contained in:
zeromus 2016-03-26 12:39:18 -05:00
parent 5ce0ace1cd
commit 406b431280
2 changed files with 2 additions and 0 deletions

View File

@ -776,6 +776,7 @@ namespace BizHawk.Client.EmuHawk
//maybe the user wants vsync, but not vsync throttle.
//this makes sense... but we dont have the infrastructure to support it now (we'd have to enable triple buffering or something like that)
//so what we're gonna do is disable vsync no matter what if throttling is off, and maybe nobody will notice.
//update 26-mar-2016: this upsets me. When fastforwarding and skipping frames, vsync should still work
if (Global.DisableSecondaryThrottling)
vsync = false;

View File

@ -1840,6 +1840,7 @@ namespace BizHawk.Client.EmuHawk
_throttle.SetCoreFps(Global.Emulator.CoreComm.VsyncRate);
_throttle.signal_paused = EmulatorPaused;
_throttle.signal_unthrottle = _unthrottled || turbo;
//zero 26-mar-2016 - vsync and vsync throttle here both is odd, but see comments elsewhere about triple buffering
_throttle.signal_overrideSecondaryThrottle = (fastForward || rewind) && (Global.Config.SoundThrottle || Global.Config.VSyncThrottle || Global.Config.VSync);
_throttle.SetSpeedPercent(speedPercent);
}