Fix delayed FPS collapse from dense imp collision recovery and repeated routing
This commit is contained in:
+8
-2
@@ -88,7 +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
|
||||
test_mode=test_mode or "--test-maiden-performance" in args or "--test-performance-soak" 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))
|
||||
@@ -145,7 +145,8 @@ func _ready():
|
||||
say("Первый день. Последняя надежда на отпуск.")
|
||||
refresh_ui()
|
||||
if automatic: build_auto_arm()
|
||||
if "--test-maiden-performance" in args:call_deferred("run_maiden_performance_tests")
|
||||
if "--test-performance-soak" in args:call_deferred("run_performance_soak_tests")
|
||||
elif "--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")
|
||||
@@ -577,7 +578,9 @@ func _process(delta):
|
||||
time+=dt
|
||||
for gear in moving_gears: gear.rotation.z+=dt*0.65
|
||||
if workshop:
|
||||
var profile_tick=Time.get_ticks_usec() if get_meta("profile_life",false) else 0
|
||||
workshop.update(dt)
|
||||
if profile_tick>0:set_meta("workshop_cpu_us",Time.get_ticks_usec()-profile_tick)
|
||||
return
|
||||
if paused or not game_started: return
|
||||
advance_spawns(dt)
|
||||
@@ -1022,3 +1025,6 @@ func run_iron_maiden_tests():
|
||||
|
||||
func run_maiden_performance_tests():
|
||||
await preload("res://maiden_performance_tests.gd").new().run(self)
|
||||
|
||||
func run_performance_soak_tests():
|
||||
await preload("res://performance_soak_tests.gd").new().run(self)
|
||||
|
||||
Reference in New Issue
Block a user