VU: Avoid overclocking when VUSync fix is enabled

This commit is contained in:
refractionpcsx2 2023-11-02 11:55:56 +00:00
parent 50872438e9
commit 8b9af2c21b
1 changed files with 2 additions and 1 deletions

View File

@ -464,7 +464,8 @@ void mVUtestCycles(microVU& mVU, microFlagCycles& mFC)
{ {
iPC = mVUstartPC; iPC = mVUstartPC;
if (isVU0 && EmuConfig.Speedhacks.EECycleRate != 0) // If the VUSyncHack is on, we want the VU to run behind, to avoid conditions where the VU is sped up.
if (isVU0 && EmuConfig.Speedhacks.EECycleRate != 0 && (!EmuConfig.Gamefixes.VUSyncHack || EmuConfig.Speedhacks.EECycleRate < 0))
{ {
switch (std::min(static_cast<int>(EmuConfig.Speedhacks.EECycleRate), static_cast<int>(mVUcycles))) switch (std::min(static_cast<int>(EmuConfig.Speedhacks.EECycleRate), static_cast<int>(mVUcycles)))
{ {