Improve animation performance.