fix perfstats freaking out

This commit is contained in:
Alug committed 2025-11-26 10:09:24 +01:00
1 parent 03b0ae341b
commit 8b829d722c
2 files changed
+3 -5

No files matched your search

-2
View File
@@ -295,8 +295,6 @@ void HWR_RenderBatches(boolean sort)
qs22j(polygonArraySorted, polygonArraySize, sizeof(PolygonArrayEntry *), (useshader ? comparePolygons : comparePolygonsNoShaders));
PS_STOP_TIMING(ps_hw_batchsorttime);
}
else
ps_hw_batchsorttime.value.p = 0;
// sort order
// 1. shader
+3 -3
View File
@@ -4453,11 +4453,11 @@ static void HWR_RenderDrawNodes(void)
}
}
PS_STOP_TIMING(ps_hw_nodedrawtime);
if (LIKELY(cv_glbatching.value))
HWR_RenderBatches(false);
PS_STOP_TIMING(ps_hw_nodedrawtime);
drawnodes.clear(); // clear so our size is 0 again!
}
@@ -5583,9 +5583,9 @@ void HWR_RenderViewpoint(gl_portal_t *rootportal, player_t *player, int stencil_
HWR_DrawSprites<DrawSpritesType::kModels>();
else
HWR_DrawSprites<DrawSpritesType::kSprites>();
PS_STOP_TIMING(ps_hw_spritedrawtime);
if (LIKELY(cv_glbatching.value))
HWR_RenderBatches(false);
PS_STOP_TIMING(ps_hw_spritedrawtime);
ps_numdrawnodes.value.i = 0;
ps_hw_nodesorttime.value.p = 0;