Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Tip for unloading tile map — Gideros Forum

Tip for unloading tile map

RickyngkRickyngk Member
edited June 2012 in General questions
Dear,
I've just found out an interesting issue (maybe everybody knew it before)
According to Gideros example about tile map, to load tilemap data:
local map = require("desert")
if using several tilemaps, memory is increased after "require" even if we set map to nil (map = nil). To unload data completely, uses:
map = nil
package.loaded["desert"] = nil
:D

Regards,
+1 -1 (+4 / -0 )Share on Facebook

Comments

Sign In or Register to comment.