summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlibpcsxcore/psxcounters.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libpcsxcore/psxcounters.c b/libpcsxcore/psxcounters.c
index 000a8929..01fc7c2b 100755
--- a/libpcsxcore/psxcounters.c
+++ b/libpcsxcore/psxcounters.c
@@ -521,6 +521,10 @@ s32 psxRcntFreeze( gzFile f, s32 Mode )
if (Mode == 0) {
psxHsyncCalculate();
+ // iCB: recalculate target count in case overclock is changed
+ rcnts[3].target = (PSXCLK / (FrameRate[Config.PsxType] * HSyncTotal[Config.PsxType]));
+ if(rcnts[1].rate != 1)
+ rcnts[1].rate = (PSXCLK / (FrameRate[Config.PsxType] * HSyncTotal[Config.PsxType]));
}
return 0;