diff options
| author | 2020-02-25 11:12:46 -0400 | |
|---|---|---|
| committer | 2020-06-27 11:35:09 -0400 | |
| commit | dc580582034fb5937aa53176fdaa4bd0fc4acce8 (patch) | |
| tree | 6d351a6c3a76fee0a9bc1ab546d07c0583a9d9cd /src/video_core/gpu_thread.cpp | |
| parent | CPU_Manager: remove debugging code. (diff) | |
| download | yuzu-dc580582034fb5937aa53176fdaa4bd0fc4acce8.tar.gz yuzu-dc580582034fb5937aa53176fdaa4bd0fc4acce8.tar.xz yuzu-dc580582034fb5937aa53176fdaa4bd0fc4acce8.zip | |
General: Setup yuzu threads' microprofile, naming and registry.
Diffstat (limited to 'src/video_core/gpu_thread.cpp')
| -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 @@ | |||
| 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/thread.h" | ||
| 7 | #include "core/core.h" | 8 | #include "core/core.h" |
| 8 | #include "core/frontend/emu_window.h" | 9 | #include "core/frontend/emu_window.h" |
| 9 | #include "core/settings.h" | 10 | #include "core/settings.h" |
| @@ -18,7 +19,10 @@ namespace VideoCommon::GPUThread { | |||
| 18 | static void RunThread(Core::System& system, VideoCore::RendererBase& renderer, | 19 | static void RunThread(Core::System& system, VideoCore::RendererBase& renderer, |
| 19 | Core::Frontend::GraphicsContext& context, Tegra::DmaPusher& dma_pusher, | 20 | Core::Frontend::GraphicsContext& context, Tegra::DmaPusher& dma_pusher, |
| 20 | SynchState& state) { | 21 | SynchState& state) { |
| 21 | MicroProfileOnThreadCreate("GpuThread"); | 22 | std::string name = "yuzu:GPU"; |
| 23 | MicroProfileOnThreadCreate(name.c_str()); | ||
| 24 | Common::SetCurrentThreadName(name.c_str()); | ||
| 25 | system.RegisterHostThread(); | ||
| 22 | 26 | ||
| 23 | // Wait for first GPU command before acquiring the window context | 27 | // Wait for first GPU command before acquiring the window context |
| 24 | while (state.queue.Empty()) | 28 | while (state.queue.Empty()) |