Fix sprite perf problems