[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua_State: Overhead and code retention
- From: "Mark Manyen" <mmanyen@...>
- Date: Fri, 10 Jan 2003 08:52:24 -0600
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
>
>