[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Speed of C-to-Lua calls
- From: "Ivan-Assen Ivanov" <ivanassen@...>
- Date: Wed, 13 Feb 2008 14:32:13 +0200
> I'm writing an C++ IRC client which uses Lua for user scripts, and thinking
> about using Lua for message parsing - I've mocked up a parser and it makes
> the code very easy to deal with. Now, I'm aware that premature optimization
> is bad, and that IRC operations are essentially user-input bound, which is
> slow - but can anyone see any performance pitfalls with having possibly 3 to
> 6 C-to-Lua calls per message received?
In brief: don't worry.
In more words: we are using heavily Lua in games. We do C-to-Lua calls
on each frame to render our UI (which is almost entirely in Lua), and
on each user input message (mouse move, key press, controller action