Hi, I'm currently making games in as3 with flashpunk, but have been wanting to expand my horizons a little into a new language (and a system that is more network friendly), and love looks like a good option. Lots of people I know constantly rave about how great lua is, so I decided to do some investigating and came across this benchmark:
http://www.sparkrift.com/2012/1/love2d- ... na-vs-sfml
It shows (for this specific benchmark) poor performance for love compared to the other engines. It was indeed the reason that the developer (who had praise for lov's ease of use and development speed) chose not to use it. Is this a fair assessment of love's general performance compared to the others? The code is provided here.
I'm planning to develop a 2d multiplayer shooter/platformer similar to soldat for ~16 players (more would be nice) so performance is a concern for me.
Love performance comparison/question.
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: Love performance comparison.
When you buy a car, max speed is not the only thing you look. You also consider the price. How many repair shops are there. The reputation of its makers. If you have children, then you make sure there's space for them in the backseats. And so on.
The same goes for engines and frameworks (I would consider LÖVE a framework, not a game engine).
LÖVE is not the fastest solution out there. But that has never been its objective anyway. Ease of use, for example, comes first.
It's right there in the article:
But the article doesn't have a graph for ease of use, or platform independence.
The same goes for engines and frameworks (I would consider LÖVE a framework, not a game engine).
LÖVE is not the fastest solution out there. But that has never been its objective anyway. Ease of use, for example, comes first.
It's right there in the article:
Take into account that the poster was already quite familiar with XNA. If he had not, LÖVE would have been the easiest one.Porting the benchmark to Love2D was really quick. I think it may have been the easiest to use after XNA.
But the article doesn't have a graph for ease of use, or platform independence.
When I write def I mean function.
- substitute541
- Party member
- Posts: 484
- Joined: Fri Aug 24, 2012 9:04 am
- Location: Southern Leyte, Visayas, Philippines
- Contact:
Re: Love performance comparison/question.
I prefer Flash (Adobe/Macromedia) than Flashpunk.
And uhh, Love is just an easy-to-use framework, not necessarily a fast one (although, since there is no limit for the FPS, other than your computer, it can be fast for relatively powerful computers).
And uhh, Love is just an easy-to-use framework, not necessarily a fast one (although, since there is no limit for the FPS, other than your computer, it can be fast for relatively powerful computers).
Currently designing themes for WordPress.
Sometimes lurks around the forum.
Sometimes lurks around the forum.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Love performance comparison/question.
For what it's worth, I ran the test and got way more performance than that. Unfortunately, since he only published the windows ones, I couldn't really test the others myself.
Re: Love performance comparison/question.
Your numbers will depend on how strong your computer is. I checked both love and XNA which were able to hold 60fps at 5000 and 25000 sprites respectively, consistent with the original authors results (under windows 7 64-bit).bartbes wrote:For what it's worth, I ran the test and got way more performance than that. Unfortunately, since he only published the windows ones, I couldn't really test the others myself.
- dreadkillz
- Party member
- Posts: 223
- Joined: Sun Mar 04, 2012 2:04 pm
- Location: USA
Re: Love performance comparison/question.
Was this benchmark done with LuaJIT? It probably would help boost the score by a lot but I'd imagine we still end up last.
- monsieur_h
- Citizen
- Posts: 69
- Joined: Tue Oct 30, 2012 4:43 pm
Re: Love performance comparison/question.
LÖVE also ends last because he didn't bench pygame.
Re: Love performance comparison/question.
I performed it again with slime's LuaJIT Love, and it attained ~9000 sprites, a 1.8x improvement over regular love and closes the gap on XNA significantly.dreadkillz wrote:Was this benchmark done with LuaJIT? It probably would help boost the score by a lot but I'd imagine we still end up last.
Re: Love performance comparison/question.
I would also note that for multiplayer, having it be platform independent is AWESOME. That way, you don't need to worry about, say, macs having a different version then windows, or something like that, because they all run the same code.
Re: Love performance comparison/question.
Given the large number of calls from Lua into C++ routines each frame, we might see another performance improvement once(?) LOVE gets hooked in with LuaJIT's FFI.
Who is online
Users browsing this forum: No registered users and 6 guests