Add a stat for number of verts decoded. It's quite high but not crazy for UFC 2010...

See #18806
This commit is contained in:
Henrik Rydgård 2024-02-01 19:19:53 +01:00
parent 86ea5665f0
commit 533fa14e27
3 changed files with 5 additions and 1 deletions

View file

@ -194,6 +194,7 @@ protected:
gpuStats.numDrawCalls += numDrawInds_;
gpuStats.numVertexDecodes += numDrawVerts_;
gpuStats.numVertsSubmitted += vertexCountInDrawCalls_;
gpuStats.numVertsDecoded += numDecodedVerts_;
indexGen.Reset();
numDecodedVerts_ = 0;

View file

@ -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;

View file

@ -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,