Re: LUA Memory leak
Envoyé par
Tilps
I bugged this in game but I thought I would mention it here too.
Every image loaded using SetBackground is never unloaded, even if you stop using the image. So say you have an application which lets a user show a picture and they change the picture multiple times, the memory usage just keeps going up.
Actually, that's not a memory leak, the game just handles images differently than you're expecting. Every image that is loaded is kept in memory, but it also means that it doesn't use more memory if that image is used multiple times. At any rate, it's not Lua, it works the same for skins as well.
[CENTER][IMG]http://i.imgur.com/wK9A7aa.png[/IMG]
[SIZE=1][B][COLOR=white]75[/COLOR][/B] Fourohfour | [B][COLOR=white]75[/COLOR][/B] Artemedis | [COLOR=Blue][B]60[/B][/COLOR] Whiskeytango Foxtrot | [B][COLOR=#00ca00]50[/COLOR][/B] Mistah Boombastic | [B][COLOR=#00ca00]56[/COLOR][/B] Appetizer | [B][COLOR=#a7a7a7]25[/COLOR][/B] Aggromi | [B][COLOR=blue]61[/COLOR][/B] Onepointtwentyone Gigawatts [/SIZE] [/CENTER]