Increment numFlushes near the other stat increments

Might be better for the cache, heh.
This commit is contained in:
Henrik Rydgård committed 2023-01-04 17:10:56 +01:00
1 parent d49b39e422
commit 85e6b4e592
4 files changed
+4 -8

No files matched your search

+1 -2
View File
@@ -319,8 +319,6 @@ void DrawEngineDX9::Invalidate(InvalidationCallbackFlags flags) {
// The inline wrapper in the header checks for numDrawCalls == 0
void DrawEngineDX9::DoFlush() {
gpuStats.numFlushes++;
bool textureNeedsApply = false;
if (gstate_c.IsDirty(DIRTY_TEXTURE_IMAGE | DIRTY_TEXTURE_PARAMS) && !gstate.isModeClear() && gstate.isTextureMapEnabled()) {
textureCache_->SetTexture();
@@ -664,6 +662,7 @@ rotateVBO:
decOptions_.applySkinInDecode = g_Config.bSoftwareSkinning;
}
gpuStats.numFlushes++;
gpuStats.numDrawCalls += numDrawCalls;
gpuStats.numVertsSubmitted += vertexCountInDrawCalls_;