From 682f8e4396934190c84722d5e877a3683f4650ab Mon Sep 17 00:00:00 2001 From: Skyth <19259897+blueskythlikesclouds@users.noreply.github.com> Date: Sun, 15 Dec 2024 20:05:21 +0300 Subject: [PATCH] Put set thread name calls behind a Win32 macro. --- UnleashedRecomp/gpu/video.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/UnleashedRecomp/gpu/video.cpp b/UnleashedRecomp/gpu/video.cpp index 9f9a27e8..499b60f0 100644 --- a/UnleashedRecomp/gpu/video.cpp +++ b/UnleashedRecomp/gpu/video.cpp @@ -4047,8 +4047,9 @@ static void ProcSetPixelShader(const RenderCommand& cmd) static std::thread g_renderThread([] { +#ifdef _WIN32 GuestThread::SetThreadName(GetCurrentThreadId(), "Render Thread"); - +#endif RenderCommand commands[32]; while (true) @@ -4857,7 +4858,9 @@ static moodycamel::BlockingConcurrentQueue g_pipelineSta static void PipelineCompilerThread() { +#ifdef _WIN32 GuestThread::SetThreadName(GetCurrentThreadId(), "Pipeline Compiler Thread"); +#endif std::unique_ptr ctx; while (true) @@ -5508,8 +5511,9 @@ static bool CheckMadeAll(const T& modelData) static void ModelConsumerThread() { +#ifdef _WIN32 GuestThread::SetThreadName(GetCurrentThreadId(), "Model Consumer Thread"); - +#endif std::vector> localPendingDataQueue; std::unique_ptr ctx;