> godot goes corpo
:blobcatpain: reminder that we may never have nice things
love2d has much lower performance, especially if you want to support a web version as well
@applejack @icedquinn @xianc78 nope, i had performance issues with love2d. Especially when exporting for a web version haha the game became unusable.

@wolfi @icedquinn @xianc78 Professional games with very active graphics, physics, animations, and particles have dirt requirements. Chances are you were doing something wrong

store.steampowered.com/app/323

The webexporter is 3rd party and I think uses a JS VM for Lua. I've tried it for my stuff and it didn't wanna work

@applejack @icedquinn @xianc78 no matter what optimaztion you simply won't meet the performance you can get using something like c or zig. I've reimplemented the code i was doing in zig and it just runs so much better. Especially on older hardware

@wolfi @icedquinn @xianc78 LuaJIT is the gold standard for JIT compilers, written in assembly and optimised relentlessly

It's used in high performence application for game logic with C side rendering (like Löve) in games/engines like the CryEngine, Factorio, Minetest, Fable, or WOW

Even plain POC Lua makes up "substantial amounts" (according to the email POC got) of games like Grim Fandango. Basically all of Tim Schafer's games use Lua and were one of the first adopters of it
lua.org/history.html (ctrl-f Grim Fandango)

It 100% meets the performance requirements of games. Especially games that are the scale you'd make it with something like RayLib

You did something wrong like loading an image inside a fast loop. My games, even the particles, works on my 4gb ARM Pinebook pro without any slight hint of slowdown

@applejack @icedquinn @xianc78 you can just do a benchmark on how many particles you can emmit in love2d compared to raylib/c if you don't believe me

@wolfi @icedquinn @xianc78 The particle system is programmed in C++, what do you think?

Follow

@wolfi @icedquinn @xianc78 Looking at the code it's also fairly simple and modular. You just offset transforms according to whatever rules you want and tell it to draw a quad. You could in fact make your own C/Nim particle module and add it without much effort

Extending Lua with C (or C with Lua) is easy, comfy, and fast in general. That's largely why so many people use it

github.com/love2d/love/blob/ma

· · Web · 1 · 0 · 0
@applejack @icedquinn @xianc78 using Lua in different parts of a program is very different to using love2d to make a game ahah and I'm not a noob to Lua, i love the language for it's simplicity and ease of use
Sign in to participate in the conversation
Game Liberty Mastodon

Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.