Skip to content

Unload Textures #1270

Answered by AlmasB
Fremensito asked this question in Q&A
Discussion options

You must be logged in to vote

If you wish to free resources related to images, then you can:

  1. FXGL.getAssetLoader().clearCache()
  2. texture.dispose()

The memory associated with the image should then be freed on the next GC call.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Fremensito
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants