From 765b68458ac48f682e4d63d4101d41cbb3fe3f27 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Wed, 17 Aug 2016 21:16:39 +0200 Subject: [PATCH] gsdx: improve logging Don't enable UpdateValidity print by default (+20~25% on log size) Only useful in rare cases --- plugins/GSdx/GSTextureCache.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/GSdx/GSTextureCache.cpp b/plugins/GSdx/GSTextureCache.cpp index 6110bd6d86..deb81ea54f 100644 --- a/plugins/GSdx/GSTextureCache.cpp +++ b/plugins/GSdx/GSTextureCache.cpp @@ -825,9 +825,9 @@ void GSTextureCache::InvalidateVideoMem(GSOffset* off, const GSVector4i& rect, b uint32 offset = (uint32)((bp - t->m_TEX0.TBP0) * 256); if(rowsize > 0 && offset % rowsize == 0) { - GL_CACHE("TC: Dirty in the middle of Target(%s) %d (0x%x)", to_string(type), + GL_CACHE("TC: Dirty in the middle of Target(%s) %d (0x%x->0x%x) bw:%u", to_string(type), t->m_texture ? t->m_texture->GetID() : 0, - t->m_TEX0.TBP0); + t->m_TEX0.TBP0, t->m_end_block, bw); int y = GSLocalMemory::m_psm[psm].pgs.y * offset / rowsize; @@ -1848,7 +1848,8 @@ void GSTextureCache::Target::UpdateValidity(const GSVector4i& rect) nb_block >>= 1; m_end_block = m_TEX0.TBP0 + nb_block; - //fprintf(stderr, "S: 0x%x E:0x%x\n", m_TEX0.TBP0, m_end_block); + + // GL_CACHE("UpdateValidity (0x%x->0x%x) from R:%d,%d Valid: %d,%d", m_TEX0.TBP0, m_end_block, rect.z, rect.w, m_valid.z, m_valid.w); } bool GSTextureCache::Target::Inside(uint32 bp, uint32 bw, uint32 psm, const GSVector4i& rect)