Early out of valid portal checks if destination is already marked as mightsee

This commit is contained in:
Jarrod Doyle 2025-01-27 18:09:46 +00:00
parent 13929e44a6
commit e93efb91f2
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 5 additions and 0 deletions

View File

@ -166,6 +166,11 @@ public class PotentiallyVisibleSet
{
var target = _edges[targetEdgeIdx];
var targetPlane = target.Poly.Plane;
if (source.MightSee[target.Destination])
{
continue; // target is already explored
}
var validTarget = false;
foreach (var v in target.Poly.Vertices)