Early out of valid portal checks if destination is already marked as mightsee
This commit is contained in:
parent
13929e44a6
commit
e93efb91f2
|
@ -166,6 +166,11 @@ public class PotentiallyVisibleSet
|
||||||
{
|
{
|
||||||
var target = _edges[targetEdgeIdx];
|
var target = _edges[targetEdgeIdx];
|
||||||
var targetPlane = target.Poly.Plane;
|
var targetPlane = target.Poly.Plane;
|
||||||
|
|
||||||
|
if (source.MightSee[target.Destination])
|
||||||
|
{
|
||||||
|
continue; // target is already explored
|
||||||
|
}
|
||||||
|
|
||||||
var validTarget = false;
|
var validTarget = false;
|
||||||
foreach (var v in target.Poly.Vertices)
|
foreach (var v in target.Poly.Vertices)
|
||||||
|
|
Loading…
Reference in New Issue