Skip to content

Commit

Permalink
md: tweak 32X timing numbers
Browse files Browse the repository at this point in the history
Should fix Brutal and Chaotix
  • Loading branch information
LukeUsher committed Feb 6, 2025
1 parent bb22386 commit fdd7acb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ares/md/m32x/sh7604.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,14 @@ auto M32X::SH7604::step(u32 clocks) -> void {

auto M32X::SH7604::power(bool reset) -> void {
Thread::create((system.frequency() / 7.0) * 3.0, {&M32X::SH7604::main, this});

//When tweaking these values, make sure to test the following problematic games:
// Brutal - Check for hang in attract mode
// Chaotix - Check for hang on intro screen or level loading transitions

SH2::recompilerStepCycles = 200; //Recompiler will force an exit after at least N cycles have passed
minCyclesBetweenSh2Syncs = 50; //Do not sync SH2s more than once every N cycles
minCyclesBetweenM68kSyncs = 100; //Do not sync M68K more than once every N cycles
minCyclesBetweenSh2Syncs = 10; //Do not sync SH2s more than once every N cycles
minCyclesBetweenM68kSyncs = 50; //Do not sync M68K more than once every N cycles
SH2::power(reset);
irq = {};
irq.vres.enable = 1;
Expand Down

0 comments on commit fdd7acb

Please sign in to comment.