From f982e777e56b5da4a69426c0b7e629ea0ac18a5c Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Wed, 30 Dec 2015 10:24:54 -0800 Subject: [PATCH] Stop logging alphatested draws for debug stats. Measured a small perf hit here, and we're not really using these stats much anymore. --- Core/HLE/sceDisplay.cpp | 4 ---- GPU/Common/ShaderId.cpp | 5 ----- GPU/GPU.h | 5 ----- 3 files changed, 14 deletions(-) diff --git a/Core/HLE/sceDisplay.cpp b/Core/HLE/sceDisplay.cpp index a834376165..13831c6483 100644 --- a/Core/HLE/sceDisplay.cpp +++ b/Core/HLE/sceDisplay.cpp @@ -423,8 +423,6 @@ void __DisplayGetDebugStats(char stats[], size_t bufsize) { "Most active syscall: %s : %0.2f ms\n" "Draw calls: %i, flushes %i\n" "Cached Draw calls: %i\n" - "Alpha Tested draws: %i\n" - "Non Alpha Tested draws: %i\n" "Num Tracked Vertex Arrays: %i\n" "Cycles executed: %d (%f per vertex)\n" "Commands per call level: %i %i %i %i\n" @@ -447,8 +445,6 @@ void __DisplayGetDebugStats(char stats[], size_t bufsize) { gpuStats.numDrawCalls, gpuStats.numFlushes, gpuStats.numCachedDrawCalls, - gpuStats.numAlphaTestedDraws, - gpuStats.numNonAlphaTestedDraws, gpuStats.numTrackedVertexArrays, gpuStats.vertexGPUCycles + gpuStats.otherGPUCycles, vertexAverageCycles, diff --git a/GPU/Common/ShaderId.cpp b/GPU/Common/ShaderId.cpp index a528d3f983..253b2995bc 100644 --- a/GPU/Common/ShaderId.cpp +++ b/GPU/Common/ShaderId.cpp @@ -257,11 +257,6 @@ void ComputeFragmentShaderID(ShaderID *id_out, uint32_t vertType) { id.SetBits(FS_BIT_REPLACE_ALPHA_WITH_STENCIL_TYPE, 4, ReplaceAlphaWithStencilType()); } - if (enableAlphaTest) - gpuStats.numAlphaTestedDraws++; - else - gpuStats.numNonAlphaTestedDraws++; - // 2 bits. id.SetBits(FS_BIT_REPLACE_LOGIC_OP_TYPE, 2, ReplaceLogicOpType()); diff --git a/GPU/GPU.h b/GPU/GPU.h index ff504ae47c..b98c30e67b 100644 --- a/GPU/GPU.h +++ b/GPU/GPU.h @@ -66,8 +66,6 @@ struct GPUStatistics { numShaderSwitches = 0; numFlushes = 0; numTexturesDecoded = 0; - numAlphaTestedDraws = 0; - numNonAlphaTestedDraws = 0; msProcessingDisplayLists = 0; vertexGPUCycles = 0; otherGPUCycles = 0; @@ -91,9 +89,6 @@ struct GPUStatistics { int otherGPUCycles; int gpuCommandsAtCallLevel[4]; - int numAlphaTestedDraws; - int numNonAlphaTestedDraws; - // Total statistics, updated by the GPU core in UpdateStats int numVBlanks; int numFlips;