lua-users home
lua-l archive

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


> > Has anyone here used lua in what might be a considered a long-running
> > high performance app?
> > For example, has anyone used lua for the AI of a real time strategy game
> > with lua programs controlling each of a hundred or more units, 30 times
> > a second?
>
> I had every intention to, but came to the conclusion that it isn't
practical
> without the support of an incremental garbage collector.  The games that
Lua
> has been used in are non-real time from what I can tell.

Th AI in RTS games is not usually executed every frame.  The AI is generally
updated every ten frames or so or spread out over a couple of frames.  So
it's still real-time, but a slower form of real-time.

Steve 'Sly' Williams - Code Monkey - http://www.kromestudios.com