LOVE2D Lua Performance

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
sabino
Prole
Posts: 4
Joined: Thu Jun 19, 2014 4:10 pm

LOVE2D Lua Performance

Post by sabino »

Hi!
I'm new here, and I found on the Internet this website about the LOVE game engine.
It seems easy and very nice, and it uses Lua for scripting.
I know that languages like C++ and Go are very fast because they are compiled.
Other languages such as Lua, Java and Python, are interpreted.
LOVE2D export games as standalone executables, but, what about the game performance?
Will it run slowly?
Thank you :)
User avatar
Jasoco
Inner party member
Posts: 3725
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: LOVE2D Lua Performance

Post by Jasoco »

sabino wrote:Will it run slowly?
No.

*procedes to post a whole bunch of GIFs of projects he's done solely for the purpose of bragging*

I could post a bunch of my projects but they're all 3D and 3D is not something Löve can do. But it doesn't stop about half of us here from trying. However, you should not try to do 3D. 2D will run super smoothly though.

Just for the heck of it, why not..
Image Image Image Image Image
http://i.minus.com/izo7aQvCrC9tj.png
(Note the FPS on that last one which is a URL since it's much bigger.)
User avatar
micha
Inner party member
Posts: 1083
Joined: Wed Sep 26, 2012 5:13 pm

Re: LOVE2D Lua Performance

Post by micha »

It is true that the Lua-Part of LÖVE is potentially slower than game completely written in C++ and then compiled. However, the part of the game, that usually take the most time, namely the drawing, is implemented directly into LÖVE. Only the game logic will be implemented in Lua and this part is usually not the performance-bottleneck. So you can assume that your game will run fine.
User avatar
Fenrir
Party member
Posts: 222
Joined: Wed Nov 27, 2013 9:44 am
Contact:

Re: LOVE2D Lua Performance

Post by Fenrir »

And the latest version of LOVE uses Luajit, one of the fastest (or even the fastest) JIT compiler for interpreted language around. My project starts to be quite large and performances are not yet a problem and won't be.
Post Reply

Who is online

Users browsing this forum: Amazon [Bot] and 100 guests