From ec9c20423d3e59d32b9987ef93cc771abfa1a0db Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Mon, 27 Jan 2025 19:25:51 +0000 Subject: [PATCH] Use BitArray for MightSee --- KeepersCompound.Lightmapper/PotentiallyVisibleSet.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/KeepersCompound.Lightmapper/PotentiallyVisibleSet.cs b/KeepersCompound.Lightmapper/PotentiallyVisibleSet.cs index cd34ede..17efef1 100644 --- a/KeepersCompound.Lightmapper/PotentiallyVisibleSet.cs +++ b/KeepersCompound.Lightmapper/PotentiallyVisibleSet.cs @@ -1,3 +1,4 @@ +using System.Collections; using System.Numerics; using KeepersCompound.LGS.Database.Chunks; @@ -14,7 +15,7 @@ public class PotentiallyVisibleSet private readonly struct Edge(int mightSeeLength, int destination, Poly poly) { - public readonly bool[] MightSee = new bool[mightSeeLength]; + public readonly BitArray MightSee = new(mightSeeLength); public readonly int Destination = destination; public readonly Poly Poly = poly;