Is animation tree faster then animation player

4.41
Is this slow?

func _process(delta: float) -> void:
	# ... determine progress variable...
	animated_node.play("crouch")
	animated_node.seek(progress * animation_length, true)

Would it be faster to use an animation tree? Im just interpolating the crouch animation from how crouched the player is.

You could get a lot more out of an animation tree, what happens if you want to walk and crouch at the same time?

Animation Tree is probably faster but it’s code only on the player so it’s a very low-impact piece of code regardless, unless you have dozens of players. If you are having performance problems check The Profiler, otherwise save premature optimizations for high-use code paths.

1 Like

If I had two animation players, (due to some animations being imported), can one tree work?

Animation Tree is built to work on a single AnimationPlayer with many animations, you may be able to change import settings so files such as FBX or GLB import as a “AnimationLibrary” that can be combined into one AnimationPlayer easily.

If I import it as animation library it corrupts any scenes using it. And I can’t use the mesh anymore. I made a backup but for anybody else reading this

This ended up working, import the rig as a scene. Save your custom animations to a library witht he manage animation thing, and you can add those animations to imported animation players

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.