lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Title: RE: GC "survey"

> But again, why do you want to free up the space taken by
> "NPC dialogue"? Something between the loading of different
> levels? I usually just put all of them in one place, and
> they will be freed by lua_close() anyway.

When you get on other maps, new NPCs get loaded, each with
his/her own dialog table. So when NPCs die, or when the player
moves to a place where going back is not possible, their dialog
should be removed to avoid continuous memory usage increase.

Vincent Penquerc'h