Move sprite generation out of the critical path