How to release the memory??

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
findook
Prole
Posts: 1
Joined: Sun Jul 20, 2014 3:02 am

How to release the memory??

Post by findook »

How can I release the memory load a Image??
User avatar
Zer0
Citizen
Posts: 59
Joined: Sat Oct 06, 2012 9:55 am
Location: Sweden
Contact:

Re: How to release the memory??

Post by Zer0 »

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.
If you can't fix it, Kill it with fire. ( Preferably before it lays eggs. )
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 67 guests