From 83f8bfd3c9c35fcb135ef6c33dfd88bbfe066ee2 Mon Sep 17 00:00:00 2001 From: nmzik Date: Sun, 25 Oct 2026 02:19:28 +0200 Subject: [PATCH] pipeline: print a console message before the shader cache warm-up --- .../host_gpu/renderer/pipeline/pipelineSerialization.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/graphics/host_gpu/renderer/pipeline/pipelineSerialization.cpp b/src/graphics/host_gpu/renderer/pipeline/pipelineSerialization.cpp index ef33bf154..8b86479a6 100644 --- a/src/graphics/host_gpu/renderer/pipeline/pipelineSerialization.cpp +++ b/src/graphics/host_gpu/renderer/pipeline/pipelineSerialization.cpp @@ -153,6 +153,9 @@ void PipelineCache::WarmUp(const std::filesystem::path& path) { file.Read(bytes.data(), static_cast(bytes.size()), &read); bytes.resize(read); } + Log::WriteToConsoleAndLog( + fmt::format("Shader cache: compiling shaders and pipelines from {} ({:.1f} MB)\n", + Common::PathToString(path), static_cast(bytes.size()) / 1'000'000.0)); std::vector pipelines; auto records = std::span(bytes); const bool reusable = @@ -183,10 +186,9 @@ void PipelineCache::WarmUp(const std::filesystem::path& path) { CheckpointDriverCache(); } Log::WriteToConsoleAndLog(fmt::format( - "Shader cache: loaded {} programs, {} modules, {} pipelines from {} ({:.1f} MB) in {} ms\n", + "Shader cache: loaded {} programs, {} modules, {} pipelines in {} ms\n", m_program_cache.size(), modules.size() - 1, - m_graphics_pipelines.size() + m_compute_pipelines.size(), Common::PathToString(path), - static_cast(bytes.size()) / 1'000'000.0, + m_graphics_pipelines.size() + m_compute_pipelines.size(), std::chrono::duration_cast(std::chrono::steady_clock::now() - start) .count()));