Fix delayed FPS collapse from dense imp collision recovery and repeated routing
This commit is contained in:
@@ -145,6 +145,7 @@ func update_torture(dt,active):
|
||||
if cry.playing and cry.get_playback_position()>.48:cry.stop()
|
||||
|
||||
func _process(_delta):
|
||||
var profile_tick=Time.get_ticks_usec() if game and game.get_meta("profile_life",false) else 0
|
||||
if game:
|
||||
animator.speed_scale=0.0 if game.paused else 1.0
|
||||
if cry:
|
||||
@@ -162,6 +163,7 @@ func _process(_delta):
|
||||
turn("neck",Vector3.RIGHT,.06);turn("head",Vector3.RIGHT,-.08)
|
||||
relax_flight_arms()
|
||||
cloth.update(self,minf(_delta,.05))
|
||||
if profile_tick>0:game.set_meta("soul_cpu_us",game.get_meta("soul_cpu_us",0)+Time.get_ticks_usec()-profile_tick)
|
||||
|
||||
func restore_flight_pose():
|
||||
for i in range(flight_pose.size()):skeleton.set_bone_pose(i,flight_pose[i])
|
||||
|
||||
Reference in New Issue
Block a user