GameDB: Add eeCycleRate option

For those pesky games with cache/DMA issues only!
This commit is contained in:
Stenzek 2023-07-07 20:29:47 +10:00 committed by Connor McLaughlin
parent 48cfe9ca73
commit a2c9069dda
3 changed files with 10 additions and 0 deletions

View File

@ -175,6 +175,7 @@ enum class SpeedHack
MVUFlag,
InstantVU1,
MTVU,
EECycleRate,
MaxCount,
};

View File

@ -317,6 +317,11 @@
"type": "integer",
"minimum": 0,
"maximum": 1
},
"eeCycleRate": {
"type": "integer",
"minimum": -3,
"maximum": 3
}
},
"additionalProperties": false

View File

@ -181,6 +181,7 @@ static constexpr const char* s_speed_hack_names[] = {
"mvuFlag",
"instantVU1",
"mtvu",
"eeCycleRate",
};
const char* Pcsx2Config::SpeedhackOptions::GetSpeedHackName(SpeedHack id)
@ -215,6 +216,9 @@ void Pcsx2Config::SpeedhackOptions::Set(SpeedHack id, int value)
case SpeedHack::MTVU:
vuThread = (value != 0);
break;
case SpeedHack::EECycleRate:
EECycleRate = static_cast<int>(std::clamp<int>(value, MIN_EE_CYCLE_RATE, MAX_EE_CYCLE_RATE));
break;
jNO_DEFAULT
}
}