refactor(render): remove stale portal products from frame exchange

This commit is contained in:
Erik 2026-08-31 06:28:26 +02:00
parent 4d0379744b
commit a2f2eb7d78

View file

@ -170,17 +170,6 @@ internal readonly struct RenderFrameView
public ReadOnlySpan<RenderFrameCandidateRange> RouteRanges =>
Arena.RouteRanges;
public PortalVisibilityFrame? PortalFrame => Arena.PortalFrame;
public ClipFrameAssembly? ClipAssembly => Arena.ClipAssembly;
/// <summary>
/// Exact portal-view cones captured by the retail frame walk for each
/// building look-in turn. The packed dispatcher consumes these at
/// per-GfxObj granularity, matching RenderDeviceD3D::DrawMesh.
/// </summary>
public IWalkLookInViewSource? WalkLookInViews => Arena.WalkLookInViews;
public RenderFrameDiagnosticCounts DiagnosticCounts =>
Arena.DiagnosticCounts;
@ -251,12 +240,6 @@ internal sealed class RenderFrameArena
public ulong FrameSequence { get; private set; }
public PortalVisibilityFrame? PortalFrame { get; private set; }
public ClipFrameAssembly? ClipAssembly { get; private set; }
public IWalkLookInViewSource? WalkLookInViews { get; private set; }
public RenderSceneDigest SourceDigest { get; private set; }
public RenderFrameDiagnosticCounts DiagnosticCounts =>
@ -336,9 +319,6 @@ internal sealed class RenderFrameArena
_routeRangeCount = 0;
_opaqueClassificationCount = 0;
_alphaClassificationCount = 0;
PortalFrame = null;
ClipAssembly = null;
WalkLookInViews = null;
SourceDigest = default;
_sourceDigestSet = false;
Generation = generation;
@ -349,18 +329,6 @@ internal sealed class RenderFrameArena
return _epoch;
}
internal void SetBorrowedProducts(
ulong epoch,
PortalVisibilityFrame? portalFrame,
ClipFrameAssembly? clipAssembly,
IWalkLookInViewSource? walkLookInViews)
{
EnsureBuilding(epoch);
PortalFrame = portalFrame;
ClipAssembly = clipAssembly;
WalkLookInViews = walkLookInViews;
}
internal void SetSourceDigest(ulong epoch, in RenderSceneDigest digest)
{
EnsureBuilding(epoch);
@ -560,9 +528,6 @@ internal sealed class RenderFrameArena
{
EnsureBuilding(epoch);
ClearReferenceStorage();
PortalFrame = null;
ClipAssembly = null;
WalkLookInViews = null;
SourceDigest = default;
_sourceDigestSet = false;
_state = ArenaState.Available;
@ -667,16 +632,6 @@ internal readonly struct RenderFrameWriter
_epoch = epoch;
}
public void SetBorrowedProducts(
PortalVisibilityFrame? portalFrame,
ClipFrameAssembly? clipAssembly,
IWalkLookInViewSource? walkLookInViews = null) =>
Arena.SetBorrowedProducts(
_epoch,
portalFrame,
clipAssembly,
walkLookInViews);
public void SetSourceDigest(in RenderSceneDigest digest) =>
Arena.SetSourceDigest(_epoch, in digest);