Improve animation performance