Performance impact CanInputStartAbility

ChristianWiele

Active member
Hi,

I profiled my game and was surprised to see that the second biggest contribution is coming from the Ability.CanInputStartAbility method. It takes about 5ms every frame to check for all abilities whether the corresponding button was pressed. I am using the new input system, so I have not checked the old one.
Are you aware of this performance impact?

Regards, Christian

Bildschirmfoto 2021-05-05 um 17.01.20.png
 
Good catch. I've updated the UnityInputSystem integration to cache the InputAction results.
 
Top