Make F5 incremental and reduce iron maiden geometry, physics and idle updates

This commit is contained in:
JariKo
2026-10-29 12:47:09 +02:00
parent 18f944d9eb
commit c48761ef20
14 changed files with 231 additions and 36 deletions
+6 -1
View File
@@ -88,6 +88,7 @@ func _ready():
var args=OS.get_cmdline_user_args()
test_mode="--test-iron-maiden" in args or "--test-intro" in args or "--test-room-decor" in args or "--test-camera-controls" in args or "--test-rubies" in args or "--test-runtime-burn" in args or "--test-single-punishment" in args or "--test-expansion" in args or "--test-imps" in args or "--test-flight-camera" in args or "--test-maintenance" in args or "--test-castle" in args or "--test-building" in args or "--test-workflow" in args or "--test-roster" in args or "--test-priority" in args or "--test-mesh" in args or "--test-economy" in args or "--test-posture" in args or "--test-gait" in args or "--test-visuals" in args or "--test-mode" in args or "--test-exit" in args or "--test-ui" in args or "--test-audio" in args or "--test-sentences" in args or "--test-hud" in args
capture_mode="--capture-workflow" in args or "--capture-roster" in args or "--capture-economy" in args or "--capture-posture" in args or "--capture-gait" in args or "--capture" in args or "--capture-workshop" in args
test_mode=test_mode or "--test-maiden-performance" in args
if FileAccess.file_exists("res://build_info.json"):
var stamp=JSON.parse_string(FileAccess.get_file_as_string("res://build_info.json"))
if stamp is Dictionary: build_id=str(stamp.get("id",build_id))
@@ -144,7 +145,8 @@ func _ready():
say("Первый день. Последняя надежда на отпуск.")
refresh_ui()
if automatic: build_auto_arm()
if "--test-iron-maiden" in args:call_deferred("run_iron_maiden_tests")
if "--test-maiden-performance" in args:call_deferred("run_maiden_performance_tests")
elif "--test-iron-maiden" in args:call_deferred("run_iron_maiden_tests")
elif "--test-intro" in args:call_deferred("run_intro_tests")
elif "--test-exit" in args: call_deferred("test_exit")
elif "--test-audio" in args: call_deferred("run_audio_tests")
@@ -1017,3 +1019,6 @@ func run_intro_tests():
func run_iron_maiden_tests():
await preload("res://iron_maiden_tests.gd").new().run(self)
func run_maiden_performance_tests():
await preload("res://maiden_performance_tests.gd").new().run(self)