perf: harden runtime for weaker hardware

This commit is contained in:
Rijad Zuzo
2026-08-12 10:02:45 +02:00
parent cd29da95e0
commit 34428d836a
47 changed files with 2164 additions and 243 deletions
+10 -1
View File
@@ -16,11 +16,20 @@ func _run() -> void:
var configured_assets: Terrain3DAssets = load("res://terrain/jajce/assets.tres")
var configured_texture_count := configured_assets.get_texture_count()
var world: Node3D = load("res://world/jajce/JajceWorld.tscn").instantiate()
var world: JajceWorld = load("res://world/jajce/JajceWorld.tscn").instantiate()
root.add_child(world)
await process_frame
for _frame in 10:
await physics_frame
_check(
world.get_active_presentation_quality() == JajceWorld.PresentationQuality.BALANCED,
"JajceWorld should default to the balanced presentation budget"
)
_check(
world.apply_presentation_quality(JajceWorld.PresentationQuality.HIGH),
"Scaffold validation should be able to select the authored high presentation"
)
await physics_frame
var terrain = world.get_node("TerrainRoot/Terrain3D")
_check(terrain is Terrain3D, "JajceWorld should own a Terrain3D node")