Time lightmap building

This commit is contained in:
Jarrod Doyle 2024-08-26 14:03:50 +01:00
parent 326543c0f6
commit 20a0796410
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 5 additions and 1 deletions

View File

@ -221,7 +221,11 @@ public partial class Mission : Node3D
}
}
var lightmapTexture = BuildLightmapTexture(cells, packingRects.ToArray(), rectDataMap, surfaceDataMap);
var lightmapTexture = Timing.TimeStage("Build Lightmap", () =>
{
return BuildLightmapTexture(cells, packingRects.ToArray(), rectDataMap, surfaceDataMap);
});
foreach (var (textureId, surface) in surfaceDataMap)
{
if (surface.Empty)