Select complete source LOD explicitly and reject renderer allocation failures

This commit is contained in:
DCCONSTRUCTIONS
2026-10-09 22:24:46 +03:00
parent 16865574d0
commit 37d6f90456
5 changed files with 59 additions and 8 deletions
+17
View File
@@ -0,0 +1,17 @@
from pathlib import Path
import importlib
import pytest
def test_partial_or_late_native_allocation_failure_invalidates_scene(monkeypatch, tmp_path):
monkeypatch.syspath_prepend(str(Path(__file__).parents[1] / "simulation/ai-polygon"))
module = importlib.import_module("scene_capacity")
log = tmp_path / "isaac.log"
log.write_bytes(b"startup ready\n" + b"x"*65522 + b"ERROR_OUT_OF_DE")
guard = module.RendererMemoryGuard(log)
guard.check()
guard.check()
with log.open("ab") as stream:
stream.write(b"VICE_MEMORY\napp still running\n")
with pytest.raises(module.ScenePreparationError, match="видеопамяти"):
guard.check()