memory management - Deallocate sprites properly -


what proper steps deallocate played sprite?

  1. remove object stage
  2. call stop() method on sprite
  3. set sprite variable null

is ok if remove stage , don't stop it?

the sprite instance receives tick display list, don't need stop prior removing it. ensure available garbage collection, remove display list , ensure null references may have created it.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -