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.
25 lines
746 B
C#
25 lines
746 B
C#
using AcDream.App.Rendering;
|
|
|
|
namespace AcDream.App.Tests.Rendering;
|
|
|
|
public sealed class WorldRevealRenderResourceSchedulerTests
|
|
{
|
|
[Fact]
|
|
public void ReplacementGeneration_KeepsPriorityUntilExactGenerationEnds()
|
|
{
|
|
var first = new List<bool>();
|
|
var second = new List<bool>();
|
|
var scheduler = new WorldRevealRenderResourceScheduler(
|
|
first.Add,
|
|
second.Add);
|
|
|
|
scheduler.BeginDestinationReveal(3);
|
|
scheduler.BeginDestinationReveal(4);
|
|
scheduler.EndDestinationReveal(3);
|
|
scheduler.EndDestinationReveal(4);
|
|
scheduler.EndDestinationReveal(4);
|
|
|
|
Assert.Equal([true, true, false], first);
|
|
Assert.Equal([true, true, false], second);
|
|
}
|
|
}
|