fix(render): harden portal exit handoff
Some checks failed
CI / linux-portable (push) Successful in 3m19s
CI / windows-gate (push) Failing after 6m43s
CI / release (push) Has been skipped

This commit is contained in:
Erik 2026-08-25 17:39:44 +02:00
parent ddbd7e4096
commit 82e4b4cb6d
17 changed files with 896 additions and 119 deletions

View file

@ -415,6 +415,23 @@ internal sealed class SessionPlayerCompositionPhase
? revealMeshes.SetDestinationRevealUploadPriority
: static _ => { },
foundation.TextureCache.SetDestinationRevealUploadPriority);
IRenderFrameResourceDiagnosticsSource? revealResourceDiagnostics =
StreamingDiagnostics.ProbeRevealTiming
? new RuntimeRenderFrameResourceDiagnosticsSource(
particles: null,
particleBindings: null,
worldDispatcher: revealDispatcher,
environmentCells: null,
particleRenderer: null,
uiTextRenderer: null,
portalDepthMask: null,
clipFrame: null,
terrain: null,
lighting: null,
meshes: foundation.MeshAdapter,
textures: foundation.TextureCache,
preparedAssets: content.PreparedAssets)
: null;
var worldReveal = new WorldRevealCoordinator(
live.WorldTransit,
// #280: read the radii LIVE from the streaming controller rather
@ -450,7 +467,8 @@ internal sealed class SessionPlayerCompositionPhase
worldQuiescence,
streaming,
revealRenderResources,
() => live.WorldState.LoadedLandblockCount);
() => live.WorldState.LoadedLandblockCount,
revealResourceDiagnostics);
Fault(SessionPlayerCompositionPoint.WorldRevealCreated);
return CompleteSessionPlayer(