How to release the memory??
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
How to release the memory??
How can I release the memory load a Image??
Re: How to release the memory??
You phrased that very bad.
[wiki]love.graphics.newImage[/wiki]
If you want to LOAD a new image.
[wiki]love.graphics.draw[/wiki]
If you want to DRAW an image.
http://lua-users.org/wiki/GarbageCollectionTutorial
collectgarbage is used to free memory but it should never be called because it's an expensive operation and it's done automatically, if you have a memory leak I advise you to fix it by not creating new tables every fram and reusing old tables.
[wiki]love.graphics.newImage[/wiki]
If you want to LOAD a new image.
[wiki]love.graphics.draw[/wiki]
If you want to DRAW an image.
http://lua-users.org/wiki/GarbageCollectionTutorial
collectgarbage is used to free memory but it should never be called because it's an expensive operation and it's done automatically, if you have a memory leak I advise you to fix it by not creating new tables every fram and reusing old tables.
If you can't fix it, Kill it with fire. ( Preferably before it lays eggs. )
Who is online
Users browsing this forum: Google [Bot], Semrush [Bot] and 1 guest