fix(streaming): preserve portal destination ownership
Detach old-world spatial ownership atomically, prioritize destination retirement dependencies, and reveal the viewport at the retail transition edge. Give private paperdoll views independent mesh ownership and retain dormant ACE entities so portal revisits preserve server objects without extending active GPU lifetimes.
This commit is contained in:
parent
2c848d4167
commit
823936ec31
57 changed files with 2551 additions and 324 deletions
|
|
@ -70,6 +70,46 @@ public class StreamingControllerTests
|
|||
Assert.Empty(fake.Unloads);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void FirstTick_EnqueuesRevealNeighborhoodBeforeOtherNearWork()
|
||||
{
|
||||
var state = new GpuWorldState();
|
||||
var fake = new FakeStreamer();
|
||||
var controller = new StreamingController(
|
||||
enqueueLoad: fake.EnqueueLoad,
|
||||
enqueueUnload: fake.EnqueueUnload,
|
||||
drainCompletions: fake.DrainCompletions,
|
||||
applyTerrain: (_, _) => { },
|
||||
state: state,
|
||||
nearRadius: 2,
|
||||
farRadius: 2);
|
||||
uint destination =
|
||||
StreamingRegion.EncodeLandblockIdForTest(50, 50);
|
||||
controller.BeginDestinationReservation(
|
||||
revealGeneration: 1,
|
||||
destinationCell: destination,
|
||||
requiredRenderRadius: 1);
|
||||
|
||||
controller.Tick(observerCx: 50, observerCy: 50);
|
||||
|
||||
Assert.Equal(25, fake.LoadJobs.Count);
|
||||
Assert.All(
|
||||
fake.LoadJobs.Take(9),
|
||||
job => Assert.InRange(
|
||||
Math.Max(
|
||||
Math.Abs((int)((job.Id >> 24) & 0xFFu) - 50),
|
||||
Math.Abs((int)((job.Id >> 16) & 0xFFu) - 50)),
|
||||
0,
|
||||
1));
|
||||
Assert.All(
|
||||
fake.LoadJobs.Skip(9),
|
||||
job => Assert.Equal(
|
||||
2,
|
||||
Math.Max(
|
||||
Math.Abs((int)((job.Id >> 24) & 0xFFu) - 50),
|
||||
Math.Abs((int)((job.Id >> 16) & 0xFFu) - 50))));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ReconfigureRadii_SmallerWindowUnloadsOnlyOutsideResidents()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue