mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-12-24 18:21:50 +01:00
SA1 Hack Super Mario RPG and Kirby's Dreamland 3
This fixes the FPS drops in Super Mario RPG and Kirby's Dreamland 3.
This commit is contained in:
parent
f61ecd0ef1
commit
aff6cd661f
@ -3700,6 +3700,14 @@ void CMemory::ApplyROMFixes (void)
|
|||||||
match_id ("A35") || // Mechwarrior 3050 / Battle Tech 3050
|
match_id ("A35") || // Mechwarrior 3050 / Battle Tech 3050
|
||||||
match_na ("DOOM TROOPERS")) // Doom Troopers
|
match_na ("DOOM TROOPERS")) // Doom Troopers
|
||||||
Timings.APUAllowTimeOverflow = TRUE;
|
Timings.APUAllowTimeOverflow = TRUE;
|
||||||
|
|
||||||
|
if (match_id("ARWJ") || match_id("ARWE") || // Super Mario RPG
|
||||||
|
match_id("AFJJ") || match_id("AFJE")) { // Kirby's Dream Land 3
|
||||||
|
Settings.OneClockCycle = 8;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
Settings.OneClockCycle = 6;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -69,15 +69,12 @@
|
|||||||
#define SNES_MAX_PAL_VCOUNTER 312
|
#define SNES_MAX_PAL_VCOUNTER 312
|
||||||
#define SNES_HCOUNTER_MAX 341
|
#define SNES_HCOUNTER_MAX 341
|
||||||
|
|
||||||
#ifndef ALLOW_CPU_OVERCLOCK
|
#ifdef GEKKO
|
||||||
#define ONE_CYCLE 6
|
|
||||||
#define SLOW_ONE_CYCLE 8
|
|
||||||
#define TWO_CYCLES 12
|
|
||||||
#else
|
|
||||||
#define ONE_CYCLE (Settings.OneClockCycle)
|
#define ONE_CYCLE (Settings.OneClockCycle)
|
||||||
#define SLOW_ONE_CYCLE (Settings.OneSlowClockCycle)
|
#define SLOW_ONE_CYCLE (Settings.OneSlowClockCycle)
|
||||||
#define TWO_CYCLES (Settings.TwoClockCycles)
|
#define TWO_CYCLES (Settings.TwoClockCycles)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define ONE_DOT_CYCLE 4
|
#define ONE_DOT_CYCLE 4
|
||||||
|
|
||||||
#define SNES_CYCLES_PER_SCANLINE (SNES_HCOUNTER_MAX * ONE_DOT_CYCLE)
|
#define SNES_CYCLES_PER_SCANLINE (SNES_HCOUNTER_MAX * ONE_DOT_CYCLE)
|
||||||
|
Loading…
Reference in New Issue
Block a user