[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: lua_State: Overhead and code retention
- From: Arvid Norberg <c99ang@...>
- Date: Wed, 08 Jan 2003 15:16:15 +0100
At 2003-01-07 14:39, you wrote:
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.