perf(vfx): port retail particle visibility degradation
Resolve DAT-authored particle ranges from the hardware GfxObj, apply retail distance and completed-cell visibility gates, and preserve the exact finite/infinite off-view update semantics. This removes dense-world simulation work without shortening terrain, entity, fog, or streaming distance. Publish doorway-clipped outdoor cells through a focused frame controller, retain effect cell identity for outdoor statics, reject hidden emitters before particle-slot scans, and offer an explicit opt-in Extended particle range. Release build succeeds and all 5,857 tests pass with five intentional skips. Retail-conformance, architecture, and adversarial review cycles are clean; connected Aerlinthe visual/performance gate pending. Co-authored-by: OpenAI Codex <codex@openai.com>
This commit is contained in:
parent
82789eea88
commit
f1ba147ac5
29 changed files with 1810 additions and 125 deletions
|
|
@ -45,7 +45,8 @@ public sealed class SettingsStoreTests : System.IDisposable
|
|||
FieldOfView: 100f,
|
||||
Gamma: 1.4f,
|
||||
ShowFps: true,
|
||||
Quality: AcDream.UI.Abstractions.Settings.QualityPreset.Ultra);
|
||||
Quality: AcDream.UI.Abstractions.Settings.QualityPreset.Ultra,
|
||||
ParticleRange: ParticleRange.Extended);
|
||||
|
||||
store.SaveDisplay(original);
|
||||
var loaded = store.LoadDisplay();
|
||||
|
|
@ -83,6 +84,37 @@ public sealed class SettingsStoreTests : System.IDisposable
|
|||
Assert.Equal(DisplaySettings.Default.Fullscreen, loaded.Fullscreen);
|
||||
Assert.Equal(DisplaySettings.Default.VSync, loaded.VSync);
|
||||
Assert.Equal(DisplaySettings.Default.FieldOfView, loaded.FieldOfView);
|
||||
Assert.Equal(ParticleRange.Retail, loaded.ParticleRange);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void LoadDisplay_invalid_particle_range_falls_back_to_retail()
|
||||
{
|
||||
File.WriteAllText(_tempPath, """
|
||||
{
|
||||
"version": 2,
|
||||
"display": { "particleRange": "Unlimited" }
|
||||
}
|
||||
""");
|
||||
|
||||
var loaded = new SettingsStore(_tempPath).LoadDisplay();
|
||||
|
||||
Assert.Equal(ParticleRange.Retail, loaded.ParticleRange);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void LoadDisplay_numeric_undefined_particle_range_falls_back_to_retail()
|
||||
{
|
||||
File.WriteAllText(_tempPath, """
|
||||
{
|
||||
"version": 2,
|
||||
"display": { "particleRange": "999" }
|
||||
}
|
||||
""");
|
||||
|
||||
var loaded = new SettingsStore(_tempPath).LoadDisplay();
|
||||
|
||||
Assert.Equal(ParticleRange.Retail, loaded.ParticleRange);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue