Close #316 Fix performance issue on sprite loading