Clean up decal behavior

Only update the mesh if a decal was truly created/destroyed
This commit is contained in:
Boondorl 2024-12-12 22:27:16 -05:00 committed by Nash Muhandes
commit 4d5bba8d02
4 changed files with 22 additions and 13 deletions

View file

@ -55,6 +55,7 @@ static int InvalidateLightmap()
}
glcycle_t ProcessLevelMesh;
glcycle_t DynamicBLASTime;
ADD_STAT(lightmap)
{
@ -84,6 +85,7 @@ ADD_STAT(lightmap)
"Surface pixel area to update: %u\n"
"Surface pixel area: %u\nAtlas pixel area: %u\n"
"Atlas efficiency: %.4f%%\n"
"Dynamic BLAS time: %2.3f ms\n"
"Level mesh process time: %2.3f ms\n"
"Level mesh index buffer: %d K used (%d%%)",
stats.tiles.total, stats.tiles.dirty,
@ -91,6 +93,7 @@ ADD_STAT(lightmap)
stats.pixels.total,
atlasPixelCount,
float(stats.pixels.total) / float(atlasPixelCount) * 100.0f,
DynamicBLASTime.TimeMS(),
ProcessLevelMesh.TimeMS(),
indexBufferUsed / 1000,
indexBufferUsed * 100 / indexBufferTotal);