fix(render): harden portal exit handoff
This commit is contained in:
parent
ddbd7e4096
commit
82e4b4cb6d
17 changed files with 896 additions and 119 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue