From 20a0796410e474d3c6466805c01360f1bf8b6dd7 Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Mon, 26 Aug 2024 14:03:50 +0100 Subject: [PATCH] Time lightmap building --- project/code/TMV/Mission.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)