mirror of https://github.com/snes9xgit/snes9x.git
Increase SuperFX speed slightly.
This commit is contained in:
parent
011bec6342
commit
044113b0bf
|
@ -213,8 +213,9 @@ void S9xInitSuperFX (void)
|
||||||
|
|
||||||
void S9xResetSuperFX (void)
|
void S9xResetSuperFX (void)
|
||||||
{
|
{
|
||||||
// FIXME: Snes9x can't execute CPU and SuperFX at a time. Don't ask me what is 0.417 :P
|
// FIXME: Snes9x only runs the SuperFX at the end of every line.
|
||||||
SuperFX.speedPerLine = (uint32) (0.417 * 10.5e6 * ((1.0 / (float) Memory.ROMFramesPerSecond) / ((float) (Timings.V_Max))));
|
// 5823405 is a magic number that seems to work for most games.
|
||||||
|
SuperFX.speedPerLine = (uint32) (5823405 * ((1.0 / (float) Memory.ROMFramesPerSecond) / ((float) (Timings.V_Max))));
|
||||||
SuperFX.oneLineDone = FALSE;
|
SuperFX.oneLineDone = FALSE;
|
||||||
SuperFX.vFlags = 0;
|
SuperFX.vFlags = 0;
|
||||||
CPU.IRQExternal = FALSE;
|
CPU.IRQExternal = FALSE;
|
||||||
|
|
Loading…
Reference in New Issue