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

@ -1,3 +1,4 @@
using AcDream.App.Rendering;
using AcDream.Runtime;
using AcDream.Runtime.World;
@ -85,7 +86,8 @@ internal sealed class WorldRevealCoordinator
WorldGenerationQuiescence? quiescence = null,
IWorldRevealStreamingScheduler? streaming = null,
IWorldRevealRenderResourceScheduler? renderResources = null,
Func<int>? loadedLandblockCount = null)
Func<int>? loadedLandblockCount = null,
IRenderFrameResourceDiagnosticsSource? renderResourceDiagnostics = null)
{
_transit = transit ?? throw new ArgumentNullException(nameof(transit));
_readiness = new WorldRevealReadinessBarrier(
@ -101,7 +103,11 @@ internal sealed class WorldRevealCoordinator
_streaming = streaming;
_renderResources = renderResources;
if (StreamingDiagnostics.ProbeRevealTiming)
_timing = new RevealTimingProbe(loadedLandblockCount);
{
_timing = new RevealTimingProbe(
loadedLandblockCount,
renderResourceDiagnostics);
}
}
public RuntimePortalSnapshot Snapshot => _transit.Snapshot;