lua-users home
lua-l archive

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


Could you elaborate on this idea? I am not sure what you mean...


"Arvid Norberg" <c99ang@cs.umu.se> wrote in message
5.2.0.9.0.20030108151539.02c22a98@mail.cs.umu.se">news:5.2.0.9.0.20030108151539.02c22a98@mail.cs.umu.se...
> At 2003-01-07 14:39, you wrote:
> >Hello all!
> >
> >I am considering using Lua in my next game project. One of the approaches
I
> >am exploring is to have multiple lua_States, one for each of the game
> >entities. This would allow my designers/script writers to have a private
> >namespace for each entity.
>
> Maybe you would get a smaller overhead by just using one global table per
> entity, and swap before you make any calls. Then you only need one
lua_State.
>
>
> ---
> Arvid Norberg
>
>