[GambatteLink] Don't bother stepping when the link is disconnected, should provide a nice speedboost
This commit is contained in:
parent
0715db5608
commit
3ea7c479a2
|
@ -75,7 +75,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.Gameboy
|
||||||
|
|
||||||
fixed (short* sbuff = &SoundBuffer[0])
|
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];
|
int[] n = new int[_numCores];
|
||||||
for (int i = 0; i < _numCores; i++)
|
for (int i = 0; i < _numCores; i++)
|
||||||
|
|
Loading…
Reference in New Issue