diff --git a/lib/gfx/pipeline_cache.cpp b/lib/gfx/pipeline_cache.cpp index b2bce4d..23e3fee 100644 --- a/lib/gfx/pipeline_cache.cpp +++ b/lib/gfx/pipeline_cache.cpp @@ -13,9 +13,10 @@ #include #include -#include #include #include +#include +#include namespace aurora::gfx { static Module Log("aurora::gfx::pipeline_cache"); @@ -388,6 +389,10 @@ static bool write_pipeline_cache_record(const PipelineCacheWrite& write) { } static void pipeline_cache_writer() { +#ifdef TRACY_ENABLE + tracy::SetThreadName("Pipeline cache writer thread"); +#endif + while (true) { std::deque batch; { @@ -428,6 +433,10 @@ static void pipeline_cache_writer() { } static void pipeline_worker() { +#ifdef TRACY_ENABLE + tracy::SetThreadName("Pipeline compilation thread"); +#endif + bool hasMore = false; while (g_hasPipelineThread || g_pipelinesPerFrame < BuildPipelinesPerFrame) { PendingPipeline pending;