perf: harden runtime for weaker hardware
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user