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
|
|
@ -264,6 +264,29 @@ public sealed class CompositeTextureArrayCachePolicyTests
|
|||
Assert.Equal(2, backend.Uploads.Count);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void DestinationReveal_RaisesOnlyItemCountAndRestoresNormalProfile()
|
||||
{
|
||||
var backend = new FakeBackend(maximumLayers: 64);
|
||||
using var cache = new CompositeTextureArrayCache(
|
||||
backend,
|
||||
new DeferredRetirementQueue(),
|
||||
unownedBudgetBytes: long.MaxValue,
|
||||
physicalBudgetBytes: long.MaxValue,
|
||||
maximumUploadsPerFrame: 2,
|
||||
maximumUploadBytesPerFrame: long.MaxValue);
|
||||
|
||||
cache.BeginFrame(destinationRevealUploadPriority: true);
|
||||
Assert.True(cache.TryAddAndAcquire(1, Key(1), Texture(1, 1), out _));
|
||||
Assert.True(cache.TryAddAndAcquire(1, Key(2), Texture(1, 1), out _));
|
||||
Assert.True(cache.TryAddAndAcquire(1, Key(3), Texture(1, 1), out _));
|
||||
|
||||
cache.BeginFrame();
|
||||
Assert.True(cache.TryAddAndAcquire(1, Key(4), Texture(1, 1), out _));
|
||||
Assert.True(cache.TryAddAndAcquire(1, Key(5), Texture(1, 1), out _));
|
||||
Assert.False(cache.TryAddAndAcquire(1, Key(6), Texture(1, 1), out _));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void OversizedTextureIsAllowedAsOnlyUploadToGuaranteeProgress()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue