lua-users home
lua-l archive

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


>In this project, in particular we have many temporary  userdata that are 
>created and forgot every frame. I found that one problem is that lua 
>count the memory used by userdata as only the memory taken to manage it 
>internally.

No if you use lua_newuserdata. This functions allows Lua to allocate and manage
a writeable buffer of any size. When no references exist, it is collected.
--lhf