Time lightmap building
This commit is contained in:
parent
326543c0f6
commit
20a0796410
|
@ -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)
|
foreach (var (textureId, surface) in surfaceDataMap)
|
||||||
{
|
{
|
||||||
if (surface.Empty)
|
if (surface.Empty)
|
||||||
|
|
Loading…
Reference in New Issue