[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Setting size of userdata
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 15 Jan 2003 13:16:57 -0200
>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