Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

ESPM significantly slows down emulation #151

Open
infval opened this issue Jan 25, 2023 · 0 comments
Open

ESPM significantly slows down emulation #151

infval opened this issue Jan 25, 2023 · 0 comments

Comments

@infval
Copy link

infval commented Jan 25, 2023

If I remove _mapper->ProcessEPSMClock(); here

Mesen-X/Core/Console.cpp

Lines 466 to 471 in e6d75fc

void Console::ProcessCpuClock()
{
_mapper->ProcessEPSMClock();
_mapper->ProcessCpuClock();
_apu->ProcessCpuClock();
}
I get a 2x speedup (enable FPS and set Maximum Speed).
UPD: I made a mistake in the 1st version of the post, the problem can be solved by adding if ("Is Epsm Enabled") _mapper->ProcessEPSMClock();. It remains to write the code for determining that EPSM is enabled.
UPD2: Requires a new option in the Emulation settings, or renaming "Enable EPSM" to "Enable EPSM emulation" in the Audio settings, because you can disable EPSM in the Volume tab.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant