summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2020-12-24 23:28:46 -0800
committerGravatar bunnei2020-12-28 21:33:34 -0800
commit954341763a3d8e0b9734fc2234368c40d65bace4 (patch)
tree5c2196be6ebde55ae32fd0f17d1c110b373ac675 /src
parenthle: service: vi: Refactor to grab buffer only once. (diff)
downloadyuzu-954341763a3d8e0b9734fc2234368c40d65bace4.tar.gz
yuzu-954341763a3d8e0b9734fc2234368c40d65bace4.tar.xz
yuzu-954341763a3d8e0b9734fc2234368c40d65bace4.zip
gpu: gpu_thread: Ensure MicroProfile is shutdown on exit.
Diffstat (limited to 'src')
-rw-r--r--src/video_core/gpu_thread.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/gpu_thread.cpp b/src/video_core/gpu_thread.cpp
index 1e95d80c3..7e490bcc3 100644
--- a/src/video_core/gpu_thread.cpp
+++ b/src/video_core/gpu_thread.cpp
@@ -4,6 +4,7 @@
4 4
5#include "common/assert.h" 5#include "common/assert.h"
6#include "common/microprofile.h" 6#include "common/microprofile.h"
7#include "common/scope_exit.h"
7#include "common/thread.h" 8#include "common/thread.h"
8#include "core/core.h" 9#include "core/core.h"
9#include "core/frontend/emu_window.h" 10#include "core/frontend/emu_window.h"
@@ -21,6 +22,8 @@ static void RunThread(Core::System& system, VideoCore::RendererBase& renderer,
21 SynchState& state, Tegra::CDmaPusher& cdma_pusher) { 22 SynchState& state, Tegra::CDmaPusher& cdma_pusher) {
22 std::string name = "yuzu:GPU"; 23 std::string name = "yuzu:GPU";
23 MicroProfileOnThreadCreate(name.c_str()); 24 MicroProfileOnThreadCreate(name.c_str());
25 SCOPE_EXIT({ MicroProfileOnThreadExit(); });
26
24 Common::SetCurrentThreadName(name.c_str()); 27 Common::SetCurrentThreadName(name.c_str());
25 Common::SetCurrentThreadPriority(Common::ThreadPriority::High); 28 Common::SetCurrentThreadPriority(Common::ThreadPriority::High);
26 system.RegisterHostThread(); 29 system.RegisterHostThread();