diff --git a/src/core/gpu_thread.cpp b/src/core/gpu_thread.cpp index 35cabe607..1211c029c 100644 --- a/src/core/gpu_thread.cpp +++ b/src/core/gpu_thread.cpp @@ -818,6 +818,7 @@ void GPUThread::ReconfigureOnThread(GPUThreadReconfigureCommand* cmd) Settings::GetRenderAPIForRenderer(s_state.requested_renderer.value_or(g_gpu_settings.gpu_renderer)); if (cmd->force_recreate_device || !GPUDevice::IsSameRenderAPI(current_api, expected_api)) { + Timer timer; const bool fullscreen = cmd->fullscreen.value_or(Host::IsFullscreen()); DestroyGPUPresenterOnThread(); DestroyDeviceOnThread(false); @@ -842,10 +843,14 @@ void GPUThread::ReconfigureOnThread(GPUThreadReconfigureCommand* cmd) return; } } + + INFO_LOG("GPU device recreated in {:.2f}ms", timer.GetTimeMilliseconds()); } if (cmd->renderer.has_value()) { + Timer timer; + // Do we want a renderer? if (!(*cmd->out_result = CreateGPUBackendOnThread(cmd->renderer.value(), cmd->upload_vram, cmd->error_ptr))) { @@ -862,6 +867,8 @@ void GPUThread::ReconfigureOnThread(GPUThreadReconfigureCommand* cmd) DestroyGPUPresenterOnThread(); } } + + INFO_LOG("GPU device recreated in {:.2f}ms", timer.GetTimeMilliseconds()); } else if (s_state.requested_fullscreen_ui) { diff --git a/src/core/system.cpp b/src/core/system.cpp index 543727980..b2d183181 100644 --- a/src/core/system.cpp +++ b/src/core/system.cpp @@ -1644,6 +1644,8 @@ bool System::SaveResumeState(Error* error) bool System::BootSystem(SystemBootParameters parameters, Error* error) { + Timer boot_timer; + if (!parameters.save_state.empty()) { // loading a state, so pull the media path from the save state to avoid a double change @@ -1852,6 +1854,8 @@ bool System::BootSystem(SystemBootParameters parameters, Error* error) PauseSystem(true); UpdateSpeedLimiterState(); + + INFO_LOG("System booted in {:.2f}ms", boot_timer.GetTimeMilliseconds()); PerformanceCounters::Reset(); ResetThrottler(); return true;