diff --git a/src/video_core/gpu_thread.cpp b/src/video_core/gpu_thread.cpp index e2bfdcd7fd..2b4bce4f8d 100644 --- a/src/video_core/gpu_thread.cpp +++ b/src/video_core/gpu_thread.cpp @@ -23,9 +23,11 @@ static void RunThread(std::stop_token stop_token, Core::System& system, Tegra::Control::Scheduler& scheduler, SynchState& state) { std::string name = "GPU"; MicroProfileOnThreadCreate(name.c_str()); +#if MICROPROFILE_ENABLED SCOPE_EXIT { MicroProfileOnThreadExit(); }; +#endif Common::SetCurrentThreadName(name.c_str()); Common::SetCurrentThreadPriority(Common::ThreadPriority::Critical);