From 4917fb0a96c851bae3cd16bc104cecaefb18f756 Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 13 Apr 2021 13:25:18 +0100 Subject: [PATCH] Make debug logs about padded chunks a little less spammy --- renderdoc/serialise/serialiser.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/renderdoc/serialise/serialiser.cpp b/renderdoc/serialise/serialiser.cpp index 5b5068ccf..55be7c4e5 100644 --- a/renderdoc/serialise/serialiser.cpp +++ b/renderdoc/serialise/serialiser.cpp @@ -503,8 +503,12 @@ void Serialiser::EndChunk() m_Write->Write(padByte); } - RDCDEBUG("Chunk estimated at %llu bytes, actual length %llu. Added %llu bytes padding.", - m_ChunkMetadata.length, writtenLength, numPadBytes); + // only log if there's more than 128 bytes of padding + if(m_ChunkMetadata.length - writtenLength > 128) + { + RDCDEBUG("Chunk estimated at %llu bytes, actual length %llu. Added %llu bytes padding.", + m_ChunkMetadata.length, writtenLength, numPadBytes); + } } else if(writtenLength > m_ChunkMetadata.length) { @@ -517,7 +521,7 @@ void Serialiser::EndChunk() } else { - RDCDEBUG("Chunk was exactly the estimate of %llu bytes.", m_ChunkMetadata.length); + // RDCDEBUG("Chunk was exactly the estimate of %llu bytes.", m_ChunkMetadata.length); } }