Relasing Loaded Data
Posted: Wed Feb 22, 2012 2:02 am
The title might be a little misleading, so I will try to elaborate as best as possible.
I have a function that runs at the beginning of the game to load images that are only needed at that time. (Example is a Background Image of the Menu) I was just wondering if there is a way to free up/release that image so there is no memory being wasted?
Like,
then to unload it,
Something like that. The almighty plan is to just limit the resources waiting on the back-burned to be called.
Hopefully I'm pretty clear, Thanks!
I have a function that runs at the beginning of the game to load images that are only needed at that time. (Example is a Background Image of the Menu) I was just wondering if there is a way to free up/release that image so there is no memory being wasted?
Like,
Code: Select all
image = love.graphics.newImage(bLaaahhhh)
Code: Select all
love.graphics.release(image)
Hopefully I'm pretty clear, Thanks!