Skip to content

Commit

Permalink
Merge pull request #1556 from nicolasnoble/allow-rcnt-jitter
Browse files Browse the repository at this point in the history
Allowing rcnt's jitter hack.
  • Loading branch information
nicolasnoble authored Jan 26, 2024
2 parents 99252ba + 27ad9f4 commit 64863fe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/psxcounters.cc
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,9 @@ uint32_t PCSX::Counters::readCounter(uint32_t index) {
update();
uint32_t count = readCounterInternal(index);

#if 0
// Parasite Eve 2 fix - artificial clock jitter based on PCSX::Emulator::BIAS
// TODO: any other games depend on getting excepted value from RCNT?
if (PCSX::g_emulator->config().HackFix && index == 2 && m_rcnts[index].counterState == CountToTarget &&
if (index == 2 && m_rcnts[index].counterState == CountToTarget &&
(PCSX::g_emulator->settings.get<PCSX::Emulator::SettingRCntFix>() ||
((m_rcnts[index].mode & 0x2FF) == JITTER_FLAGS))) {
/*
Expand All @@ -306,7 +305,6 @@ uint32_t PCSX::Counters::readCounter(uint32_t index) {
cylast = PCSX::g_emulator->m_cpu->m_regs.cycle;
clast = count;
}
#endif

verboseLog(2, "[RCNT %i] rcount: %x\n", index, count);
return count;
Expand Down

0 comments on commit 64863fe

Please sign in to comment.