Merge pull request #10785 from unknownbrackets/skipdraw

GPU: Count clears during frameskip
This commit is contained in:
Henrik Rydgård 2018-03-24 19:11:47 +01:00 committed by GitHub
commit 84203e8d3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1466,6 +1466,9 @@ void GPUCommon::Execute_Prim(u32 op, u32 diff) {
if (gstate_c.skipDrawReason & (SKIPDRAW_SKIPFRAME | SKIPDRAW_NON_DISPLAYED_FB)) {
// Rough estimate, not sure what's correct.
cyclesExecuted += EstimatePerVertexCost() * count;
if (gstate.isModeClear()) {
gpuStats.numClears++;
}
return;
}