chore(G.3): strip the #133 temp diagnostics

Remove the throwaway probes added to diagnose the dungeon FPS/grey issues now that
they're fixed: the ACDREAM_LOG_FPS headless line + [cellreg] registration line
(GameWindow), and the [pv-trace] 0x0007 gate-widen + raw-NDC bbox addition to the
flap probe (PortalVisibilityBuilder, reverted to the pre-#133 form). The permanent
Phase-U.4c [flap]/[pv-trace] probes (ACDREAM_PROBE_FLAP) are kept as-is.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Erik 2026-06-14 14:27:45 +02:00
parent 3e006d372a
commit 3e641339e9
2 changed files with 1 additions and 49 deletions

View file

@ -759,13 +759,7 @@ public static class PortalVisibilityBuilder
private static bool IsHoltburgIndoorProbeCell(uint cellId)
{
uint lb = cellId & 0xFFFF0000u;
// TEMP (#133 ramp-flood-collapse diagnosis): widen the [pv-trace] gate to the
// 0x0007 Town Network dungeon so the per-portal skip= reason (lookup-miss /
// clip-empty / reciprocal-empty / side) is emitted for the ramp neighbour.
if (lb == 0x00070000u)
return true;
if (lb != 0xA9B40000u)
if ((cellId & 0xFFFF0000u) != 0xA9B40000u)
return false;
uint low = cellId & 0xFFFFu;
return low >= 0x016F && low <= 0x0175;
@ -827,7 +821,6 @@ public static class PortalVisibilityBuilder
// genuinely off-screen; the ndc coords (post-clip, bounded) show where on screen it lands.
int projN = -1, clipN = -1;
string ndcText = "";
string rawText = "";
if (i < cameraCell.PortalPolygons.Count)
{
var poly = cameraCell.PortalPolygons[i];
@ -837,21 +830,6 @@ public static class PortalVisibilityBuilder
projN = clip.Length;
if (clip.Length >= 3)
{
// Raw projected-NDC bbox (pre-screen-clip): WHERE the portal lands on screen,
// even when ClipToRegion drops it to empty. A clip=0 portal whose raw bbox is
// inside [-1,1] is on-screen-but-wrongly-dropped (the bug); a bbox outside
// [-1,1] is genuinely off-screen (correct). Distinguishes the two.
float rminX = float.MaxValue, rminY = float.MaxValue, rmaxX = -float.MaxValue, rmaxY = -float.MaxValue;
foreach (var cv in clip)
{
if (cv.W <= 1e-6f) continue;
float nx = cv.X / cv.W, ny = cv.Y / cv.W;
rminX = MathF.Min(rminX, nx); rmaxX = MathF.Max(rmaxX, nx);
rminY = MathF.Min(rminY, ny); rmaxY = MathF.Max(rmaxY, ny);
}
if (rminX <= rmaxX)
rawText = FormattableString.Invariant($" raw=[{rminX:F1},{rminY:F1}..{rmaxX:F1},{rmaxY:F1}]");
var ndc = PortalProjection.ClipToRegion(clip, FullScreenQuad);
clipN = ndc.Length;
var ns = new System.Text.StringBuilder(48);
@ -864,7 +842,6 @@ public static class PortalVisibilityBuilder
sb.Append(" D=").Append(float.IsNaN(d) ? "na" : d.ToString("F2"));
sb.Append(side ? " TRV" : " CULL");
sb.Append(" proj=").Append(projN).Append(" clip=").Append(clipN);
if (rawText.Length > 0) sb.Append(rawText);
if (ndcText.Length > 0) sb.Append(" ndc=").Append(ndcText);
}
sb.Append(" || outPolys=").Append(frame.OutsideView.Polygons.Count);