diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-02-25 16:12:46 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-06-27 17:35:09 +0200 |
commit | dc580582034fb5937aa53176fdaa4bd0fc4acce8 (patch) | |
tree | 6d351a6c3a76fee0a9bc1ab546d07c0583a9d9cd /src/video_core/gpu_thread.cpp | |
parent | CPU_Manager: remove debugging code. (diff) | |
download | yuzu-dc580582034fb5937aa53176fdaa4bd0fc4acce8.tar yuzu-dc580582034fb5937aa53176fdaa4bd0fc4acce8.tar.gz yuzu-dc580582034fb5937aa53176fdaa4bd0fc4acce8.tar.bz2 yuzu-dc580582034fb5937aa53176fdaa4bd0fc4acce8.tar.lz yuzu-dc580582034fb5937aa53176fdaa4bd0fc4acce8.tar.xz yuzu-dc580582034fb5937aa53176fdaa4bd0fc4acce8.tar.zst yuzu-dc580582034fb5937aa53176fdaa4bd0fc4acce8.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/gpu_thread.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/video_core/gpu_thread.cpp b/src/video_core/gpu_thread.cpp index c3bb4fe06..323185bfc 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/thread.h" #include "core/core.h" #include "core/frontend/emu_window.h" #include "core/settings.h" @@ -18,7 +19,10 @@ namespace VideoCommon::GPUThread { static void RunThread(Core::System& system, VideoCore::RendererBase& renderer, Core::Frontend::GraphicsContext& context, Tegra::DmaPusher& dma_pusher, SynchState& state) { - MicroProfileOnThreadCreate("GpuThread"); + std::string name = "yuzu:GPU"; + MicroProfileOnThreadCreate(name.c_str()); + Common::SetCurrentThreadName(name.c_str()); + system.RegisterHostThread(); // Wait for first GPU command before acquiring the window context while (state.queue.Empty()) |