From 533fa14e27e6562222fbd15aad7c72fd93113b2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 1 Feb 2024 19:19:53 +0100 Subject: [PATCH] Add a stat for number of verts decoded. It's quite high but not crazy for UFC 2010... See #18806 --- GPU/Common/DrawEngineCommon.h | 1 + GPU/GPU.h | 2 ++ GPU/GPUCommonHW.cpp | 3 ++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/GPU/Common/DrawEngineCommon.h b/GPU/Common/DrawEngineCommon.h index 9859216e76..b59a1c73a0 100644 --- a/GPU/Common/DrawEngineCommon.h +++ b/GPU/Common/DrawEngineCommon.h @@ -194,6 +194,7 @@ protected: gpuStats.numDrawCalls += numDrawInds_; gpuStats.numVertexDecodes += numDrawVerts_; gpuStats.numVertsSubmitted += vertexCountInDrawCalls_; + gpuStats.numVertsDecoded += numDecodedVerts_; indexGen.Reset(); numDecodedVerts_ = 0; diff --git a/GPU/GPU.h b/GPU/GPU.h index f2edbdc1f6..ae60d2ba30 100644 --- a/GPU/GPU.h +++ b/GPU/GPU.h @@ -80,6 +80,7 @@ struct GPUStatistics { numDrawSyncs = 0; numListSyncs = 0; numVertsSubmitted = 0; + numVertsDecoded = 0; numUncachedVertsDrawn = 0; numTextureInvalidations = 0; numTextureInvalidationsByFramebuffer = 0; @@ -119,6 +120,7 @@ struct GPUStatistics { int numBBOXJumps; int numPlaneUpdates; int numVertsSubmitted; + int numVertsDecoded; int numUncachedVertsDrawn; int numTextureInvalidations; int numTextureInvalidationsByFramebuffer; diff --git a/GPU/GPUCommonHW.cpp b/GPU/GPUCommonHW.cpp index a40be84fd4..e6e894a96a 100644 --- a/GPU/GPUCommonHW.cpp +++ b/GPU/GPUCommonHW.cpp @@ -1749,7 +1749,7 @@ size_t GPUCommonHW::FormatGPUStatsCommon(char *buffer, size_t size) { return snprintf(buffer, size, "DL processing time: %0.2f ms, %d drawsync, %d listsync\n" "Draw: %d (%d dec, %d culled), flushes %d, clears %d, bbox jumps %d (%d updates)\n" - "Vertices: %d drawn: %d\n" + "Vertices: %d dec: %d drawn: %d\n" "FBOs active: %d (evaluations: %d)\n" "Textures: %d, dec: %d, invalidated: %d, hashed: %d kB\n" "readbacks %d (%d non-block), upload %d (cached %d), depal %d\n" @@ -1768,6 +1768,7 @@ size_t GPUCommonHW::FormatGPUStatsCommon(char *buffer, size_t size) { gpuStats.numBBOXJumps, gpuStats.numPlaneUpdates, gpuStats.numVertsSubmitted, + gpuStats.numVertsDecoded, gpuStats.numUncachedVertsDrawn, (int)framebufferManager_->NumVFBs(), gpuStats.numFramebufferEvaluations,