[GambatteLink] Don't bother stepping when the link is disconnected, should provide a nice speedboost

This commit is contained in:
CasualPokePlayer 2021-11-22 23:27:02 -08:00
parent 0715db5608
commit 3ea7c479a2
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.Gameboy
fixed (short* sbuff = &SoundBuffer[0])
{
const int Step = 4;
int Step = _linkConnected ? 4 : SampPerFrame; // don't bother stepping if we aren't linked
int[] n = new int[_numCores];
for (int i = 0; i < _numCores; i++)