mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-21 14:41:39 +00:00
Eat some CPU cycles in sceUtilityOskUpdate. Works around timing bug in Ghost Recon Predator.
The bug is in the game, it uses the wrong vblank wait, but it only works because the dialog processing takes so much time that it misses the vblank period anyway. Fixes #12044, and hopefully won't break anything else.
This commit is contained in:
parent
5ce43215b9
commit
78f3d450ff
@ -641,6 +641,9 @@ static int sceUtilityOskUpdate(int animSpeed) {
|
||||
return hleLogWarning(SCEUTILITY, SCE_ERROR_UTILITY_WRONG_TYPE, "wrong dialog type");
|
||||
}
|
||||
|
||||
// This is the vblank period, plus a little slack. Needed to fix timing bug in Ghost Recon: Predator.
|
||||
// See issue #12044.
|
||||
hleEatCycles(msToCycles(0.7315 + 0.1));
|
||||
return hleLogSuccessX(SCEUTILITY, oskDialog->Update(animSpeed));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user