Skip to content

Commit

Permalink
Merge pull request #1263 from grumpycoders/derppp
Browse files Browse the repository at this point in the history
Fixing counter overflow.
  • Loading branch information
nicolasnoble authored Apr 2, 2023
2 parents 54b1aab + 84e4979 commit f5267be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/psxcounters.cc
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ void PCSX::Counters::update() {
diff = std::numeric_limits<uint32_t>::max();
diff += cycle + 1;
diff -= prev;
diff &= 0xffffffff;
}
diff *= 4410000;
diff /= g_emulator->settings.get<Emulator::SettingScaler>();
Expand Down

0 comments on commit f5267be

Please sign in to comment.