Hello,
I am completely new to LÖVE.
When are LÖVE objects (such as audio "Source") destroyed from memory?
Is it when it is no longer referenced in Lua?
Destroying objects?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Destroying objects?
Luas garbage collector takes care of the memory. From time to time a garbage collection cycle is triggered, and then all objects that have no reference will be removed from the memory.
For most cases, you don't need to know about this in detail and it is enough to just remove all references. In some cases, however, you can also trigger the garbage collection manually to force it to free memory.
For most cases, you don't need to know about this in detail and it is enough to just remove all references. In some cases, however, you can also trigger the garbage collection manually to force it to free memory.
Check out my blog on gamedev
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 2 guests