summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-12-25 08:28:46 +0100
committerbunnei <bunneidev@gmail.com>2020-12-29 06:33:34 +0100
commit954341763a3d8e0b9734fc2234368c40d65bace4 (patch)
tree5c2196be6ebde55ae32fd0f17d1c110b373ac675 /src/video_core
parenthle: service: vi: Refactor to grab buffer only once. (diff)
downloadyuzu-954341763a3d8e0b9734fc2234368c40d65bace4.tar
yuzu-954341763a3d8e0b9734fc2234368c40d65bace4.tar.gz
yuzu-954341763a3d8e0b9734fc2234368c40d65bace4.tar.bz2
yuzu-954341763a3d8e0b9734fc2234368c40d65bace4.tar.lz
yuzu-954341763a3d8e0b9734fc2234368c40d65bace4.tar.xz
yuzu-954341763a3d8e0b9734fc2234368c40d65bace4.tar.zst
yuzu-954341763a3d8e0b9734fc2234368c40d65bace4.zip
Diffstat (limited to 'src/video_core')
-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 @@
#include "common/assert.h"
#include "common/microprofile.h"
+#include "common/scope_exit.h"
#include "common/thread.h"
#include "core/core.h"
#include "core/frontend/emu_window.h"
@@ -21,6 +22,8 @@ static void RunThread(Core::System& system, VideoCore::RendererBase& renderer,
SynchState& state, Tegra::CDmaPusher& cdma_pusher) {
std::string name = "yuzu:GPU";
MicroProfileOnThreadCreate(name.c_str());
+ SCOPE_EXIT({ MicroProfileOnThreadExit(); });
+
Common::SetCurrentThreadName(name.c_str());
Common::SetCurrentThreadPriority(Common::ThreadPriority::High);
system.RegisterHostThread();