Animation can affect the frame rate because it requires a recalculation of the mesh, but this is not a bottleneck. Nested if/then statements can not affect the frame rate. I am not sure what you mean with "batching", so I can't comment on that.
Speed is indeed the most important feature of an engine and thus optimization is a very important issue.