I’ve got a task running in my game which updates the rotation of the character model gradually over time (i.e. a smooth transition when changing direction).
This task currently runs constantly so I’m thinking of having it stop when the rotation is complete and restart on new input - so I’m wondering whether this would be a bad idea, if there’s any significant overhead to starting/stopping tasks versus leaving the task running even if/when it has nothing to do.
(Or perhaps I’ve missed a better solution to the problem altogether)
Thanks in advance.