Yeah, checking the animation frame every tick isn't great, but perhaps not such a huge cpu hit - might be worth stress testing.
I'm guessing that it's something to do with objects only being drawn at the end of the step. Not sure why that would result in the sword switching to idle *before* the knight though.