From 097ac429f6527c033498a040ef9fb1f06427aede Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 27 Nov 2024 13:37:09 +0000 Subject: [PATCH] Don't process separate debug info during capture --- renderdoc/driver/shaders/dxbc/dxbc_container.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/renderdoc/driver/shaders/dxbc/dxbc_container.cpp b/renderdoc/driver/shaders/dxbc/dxbc_container.cpp index 4cd903d9c..fe6d40da0 100644 --- a/renderdoc/driver/shaders/dxbc/dxbc_container.cpp +++ b/renderdoc/driver/shaders/dxbc/dxbc_container.cpp @@ -73,6 +73,9 @@ void CacheSearchDirDebugPaths() if(!cachedDebugFilesLookup.empty()) return; + if(!RenderDoc::Inst().IsReplayApp()) + return; + rdcarray searchPaths = DXBC_Debug_SearchDirPaths(); for(const rdcstr &base : searchPaths) @@ -1459,7 +1462,8 @@ DXBCContainer::DXBCContainer(const bytebuf &ByteCode, const rdcstr &debugInfoPat m_ShaderBlob = ByteCode; - TryFetchSeparateDebugInfo(m_ShaderBlob, debugInfoPath); + if(RenderDoc::Inst().IsReplayApp()) + TryFetchSeparateDebugInfo(m_ShaderBlob, debugInfoPath); // just for convenience byte *data = (byte *)m_ShaderBlob.data();