animated sprites processing optimizations