Page 1 of 1

Irrlua = COOL!

Posted: Wed Apr 05, 2006 3:24 pm
by shaneedward
I've been messing around with this stuff so I can start on a simple demo for my game and Irrlua looks really cool! No libraries, no includes! No compiling! I can just use Notepad++ and the command line. It looks pretty good to me. What's the down side of using Irrlua? Am I missing out on anything? Will there be performance issues?

Posted: Wed Apr 05, 2006 7:28 pm
by Klasker
IrrLua will definitely be slower than a C++ application, but for many simple games (Tetris clones, Pacman 3D, Breakout, etc) and even small RPG/FPS games the difference should not be noticable.
I haven't tried IrrLua myself, but I don't think you can write custom scene nodes using it, so you will be limited to what Irrlicht can do by itself.

Yes, you are definitely missing out on something, but maybe not something you need after all. Depends on your level of ambition ;)

Posted: Thu Apr 06, 2006 6:34 am
by zenaku
Actually, you can write custom scene nodes with IrrLua. A sample CAnimSprite.lua is included in the download and can also be viewed here http://irrlua.sourceforge.net/CAnimSprite.lua

As far as performance issues go, it really depends on what you try and do with it. On my system (athlon64 + 6800GT), I see ~430 fps running CDemo.lua with vsync turned off. Running Irrlicht's Demo.exe gives me ~450 fps. That's a pretty small difference, IMO.

On the otherhand, implementing custom scene nodes in lua is not recommended when performance is a concern. Callbacks, like the shader callbacks, can also be expensive. 10.Shaders.lua gives ~280 fps while Shaders.exe gives ~500 fps.

For the most part, it works well enough.

Posted: Thu Apr 06, 2006 8:58 am
by shaneedward
Hm, CAnimSprite.lua didn't do anything when I ran it. No window, no nothing.

Posted: Thu Apr 06, 2006 2:45 pm
by zenaku
CAnimSprite.lua is just a class. It doesn't have any code to display the custom scene node. The actual code that displays the class is called CAnimSpriteTest.lua.

http://irrlua.sourceforge.net/CAnimSpriteTest.lua