diff options
| author | iCatButler <i.am.catbutler@gmail.com> | 2016-07-30 17:26:32 +0100 |
|---|---|---|
| committer | iCatButler <i.am.catbutler@gmail.com> | 2016-07-30 17:26:32 +0100 |
| commit | d5b40fbbe0eee90573ec1848ac135962fba9438e (patch) | |
| tree | 51e6676853cde5ab7add8ada110683176294e5ec /libpcsxcore | |
| parent | 97105b26f2194dcfb50addf0a421db9debd797d5 (diff) | |
| download | pcsxr-d5b40fbbe0eee90573ec1848ac135962fba9438e.tar.gz | |
Use overclock on load state
- Recalculate CPU counters using current clock speed on loading a new state
Diffstat (limited to 'libpcsxcore')
| -rwxr-xr-x | libpcsxcore/psxcounters.c | 4 |
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; |
