Animation speed optimization