Stop logging alphatested draws for debug stats.
Measured a small perf hit here, and we're not really using these stats much anymore.
This commit is contained in:
parent
842ff4000f
commit
f982e777e5
3 changed files with 0 additions and 14 deletions
|
@ -423,8 +423,6 @@ void __DisplayGetDebugStats(char stats[], size_t bufsize) {
|
||||||
"Most active syscall: %s : %0.2f ms\n"
|
"Most active syscall: %s : %0.2f ms\n"
|
||||||
"Draw calls: %i, flushes %i\n"
|
"Draw calls: %i, flushes %i\n"
|
||||||
"Cached Draw calls: %i\n"
|
"Cached Draw calls: %i\n"
|
||||||
"Alpha Tested draws: %i\n"
|
|
||||||
"Non Alpha Tested draws: %i\n"
|
|
||||||
"Num Tracked Vertex Arrays: %i\n"
|
"Num Tracked Vertex Arrays: %i\n"
|
||||||
"Cycles executed: %d (%f per vertex)\n"
|
"Cycles executed: %d (%f per vertex)\n"
|
||||||
"Commands per call level: %i %i %i %i\n"
|
"Commands per call level: %i %i %i %i\n"
|
||||||
|
@ -447,8 +445,6 @@ void __DisplayGetDebugStats(char stats[], size_t bufsize) {
|
||||||
gpuStats.numDrawCalls,
|
gpuStats.numDrawCalls,
|
||||||
gpuStats.numFlushes,
|
gpuStats.numFlushes,
|
||||||
gpuStats.numCachedDrawCalls,
|
gpuStats.numCachedDrawCalls,
|
||||||
gpuStats.numAlphaTestedDraws,
|
|
||||||
gpuStats.numNonAlphaTestedDraws,
|
|
||||||
gpuStats.numTrackedVertexArrays,
|
gpuStats.numTrackedVertexArrays,
|
||||||
gpuStats.vertexGPUCycles + gpuStats.otherGPUCycles,
|
gpuStats.vertexGPUCycles + gpuStats.otherGPUCycles,
|
||||||
vertexAverageCycles,
|
vertexAverageCycles,
|
||||||
|
|
|
@ -257,11 +257,6 @@ void ComputeFragmentShaderID(ShaderID *id_out, uint32_t vertType) {
|
||||||
id.SetBits(FS_BIT_REPLACE_ALPHA_WITH_STENCIL_TYPE, 4, ReplaceAlphaWithStencilType());
|
id.SetBits(FS_BIT_REPLACE_ALPHA_WITH_STENCIL_TYPE, 4, ReplaceAlphaWithStencilType());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (enableAlphaTest)
|
|
||||||
gpuStats.numAlphaTestedDraws++;
|
|
||||||
else
|
|
||||||
gpuStats.numNonAlphaTestedDraws++;
|
|
||||||
|
|
||||||
// 2 bits.
|
// 2 bits.
|
||||||
id.SetBits(FS_BIT_REPLACE_LOGIC_OP_TYPE, 2, ReplaceLogicOpType());
|
id.SetBits(FS_BIT_REPLACE_LOGIC_OP_TYPE, 2, ReplaceLogicOpType());
|
||||||
|
|
||||||
|
|
|
@ -66,8 +66,6 @@ struct GPUStatistics {
|
||||||
numShaderSwitches = 0;
|
numShaderSwitches = 0;
|
||||||
numFlushes = 0;
|
numFlushes = 0;
|
||||||
numTexturesDecoded = 0;
|
numTexturesDecoded = 0;
|
||||||
numAlphaTestedDraws = 0;
|
|
||||||
numNonAlphaTestedDraws = 0;
|
|
||||||
msProcessingDisplayLists = 0;
|
msProcessingDisplayLists = 0;
|
||||||
vertexGPUCycles = 0;
|
vertexGPUCycles = 0;
|
||||||
otherGPUCycles = 0;
|
otherGPUCycles = 0;
|
||||||
|
@ -91,9 +89,6 @@ struct GPUStatistics {
|
||||||
int otherGPUCycles;
|
int otherGPUCycles;
|
||||||
int gpuCommandsAtCallLevel[4];
|
int gpuCommandsAtCallLevel[4];
|
||||||
|
|
||||||
int numAlphaTestedDraws;
|
|
||||||
int numNonAlphaTestedDraws;
|
|
||||||
|
|
||||||
// Total statistics, updated by the GPU core in UpdateStats
|
// Total statistics, updated by the GPU core in UpdateStats
|
||||||
int numVBlanks;
|
int numVBlanks;
|
||||||
int numFlips;
|
int numFlips;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue