diff --git a/project/code/TMV/Mission.cs b/project/code/TMV/Mission.cs index 609a9ae..0da3a7a 100644 --- a/project/code/TMV/Mission.cs +++ b/project/code/TMV/Mission.cs @@ -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)