lua-users home
lua-l archive

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

>Lua can, however, be quite fast enough when used right, and for the right
>sort of application. I wouldn't want to write a 3D shooter engine in lua,
>but we use it extensively with our game engines to define rooms, for
>example, and it works quite well for that.
>Kerry Thompson

Funny you say that, because I used my game engine to write a simple 3d shooter, and everything is implemented in Lua with the luaglut binding.  I certianly wouldn't argue with your assertion that Lua is slower than a compiled language, but writing a 3D game engine in Lua isn't that bad of an idea.  At least in my experience, the framerate of a game is influenced most by the geometry it is trying to render, not by the language in which it was written.  For example, my engine's framerate doesn't improve at all when I use LuaJIT, because in reality there isn't much Lua code being interpretted each frame.