enable boost mode as early as possible during init, and exit boost as late as possible during exit.

This commit is contained in:
ITotalJustice
2025-06-09 12:32:43 +01:00
parent a33d8e1061
commit 6b77cbb0c0
9 changed files with 42 additions and 17 deletions

View File

@@ -1283,8 +1283,8 @@ void App::ScanThemeEntries() {
App::App(const char* argv0) {
TimeStamp ts;
appletSetCpuBoostMode(ApmCpuBoostMode_FastLoad);
ON_SCOPE_EXIT(appletSetCpuBoostMode(ApmCpuBoostMode_Normal));
// boost mode is enabled in userAppInit().
ON_SCOPE_EXIT(App::SetBoostMode(false));
g_app = this;
m_start_timestamp = armGetSystemTick();
@@ -1851,8 +1851,8 @@ void App::DisplayDumpOptions(bool left_side) {
}
App::~App() {
appletSetCpuBoostMode(ApmCpuBoostMode_FastLoad);
ON_SCOPE_EXIT(appletSetCpuBoostMode(ApmCpuBoostMode_Normal));
// boost mode is disabled in userAppExit().
App::SetBoostMode(true);
log_write("starting to exit\n");
TimeStamp ts;