Published: September 24, 2023
73
70
717

An illuminating exchange about the approach to performance in Godot (slightly paraphrased) between Sam Pruden (who wrote the post "Godot is not the new Unity - The anatomy of a Godot API call" and Godot creator and Technical Lead Juan Linietsky. Source: https://gist.github.com/reduz/...

Image in tweet by Rune Skovbo Johansen →🦋🐘
Image in tweet by Rune Skovbo Johansen →🦋🐘
Image in tweet by Rune Skovbo Johansen →🦋🐘
Image in tweet by Rune Skovbo Johansen →🦋🐘

The stance of "we will only begin to consider better performance for a given method if we're pointed to a real-world issue (not artificial benchmark)" is very telling.

People evaluating Godot will not point out issues and then wait for them to (maybe) get fixed much later - they'll choose a different engine. People discovering performance issues in Godot mid-development won't have time to wait either, they'll have to downscope instead.

So the stance of only wanting to improve performance when there's already an actual problem with it, just means that games that need better performance won't get released on Godot, and that Godot won't be the right engine for those kinds of games.

Oops, the source link was broken. Here it is: https://gist.github.com/reduz/...

@runevision Juan's arguments seem to me to be very sensible, *given* the constraint of how much developer manpower he has at his disposal. No one could argue that more care and attention would be better, but that ignores the main resource constraint. They are talking past each other imho.

@boris_brave Juan is explicitly saying he don’t *want* most APIs to be allocation free before they’ve proven to be hot paths (under his definition). He’s not saying “these suggestions would be good if/when we have the resources”. He’s saying “this misunderstands Godot”.

@runevision Unity upsets loads of people. People go off in search of alternative. People criticise other, free, projects for their ethos, unity laughs whilst being closed source and monetising everything. Whatever happened to be kind. Empathy ? Their approach is fine as far as I can see

@Simon_McNair Godot is an impressive project. And they don't owe anyone anything. But it's valid to discuss whether it's a viable fit for someone's needs, and what signs there are that it might or might not become a valid fit in the future. That was the intention of my post.

@runevision hrrm like I get it, "premature optimization bad" sure but heap allocation-free raycasts in C# doesn't feel premature, it feels like bare minimum for a general tool, especially on the engine level ;-;

@runevision I wonder how much of this attitude is colored by the fact that: A) Unity is closed source, so you rely on it being performant or you're dead (as a user) and B) Godot is open source, so if you have a real world perf issue, you (or someone in the community) can fix it.

@runevision It's a chicken-egg problem discussion. For a small engine like Godot with very limited resources and mostly small 2D indie pc games released for it, features are in more demand by the mass of Godot devs. Mostly big mobile studios and their needs changed Unity's performance.

@runevision C# devs having to pretzel themselves to write allocation free code is the biggest waste of resources in all of gamedev. Tech leads should be calling for c#s sudden demise, not arguing over the best way to use something that’s fundamentally not suited to task, and never has been.

@runevision I think Godot will be fine. Purists who are trying to find performance problems before they actually arise are likely not being pragmatic. Also if you want to contribute to better performance in Godot do so.

@runevision Juan is 100% right - from what can be gleaned from this exchange.

@runevision I’m with Sam. Eliminating dynamic memory allocation/deallocation per frame is one of the biggest things you can do to eliminate jitter/hitching in a game. Juan is off base on this one.

@runevision Does he not realize the selection effect? People obviously just avoid the slow parts, not because they don't need them, but because they can't use them.

@runevision Until last month Godot was running on 25k/month and the core team is pretty small. Meanwhile Unity is a multi-billion company with >7k employees. You should take that into account before criticizing how they handle engine optimisation.

@runevision Unity is very slow. Comparing performance like unity is the holy grail of performance is very hilarious. Premature optimization is the killer, I agree with Juan on this. Even my garbage engine is way faster than unity and thats using mono.

@runevision I think @reduzio is very reasonable here. If there’s a real word issue submit a reproducible ticket and I’m sure it will be considered to be optimized. It’s also worth pointing out if one is really worried about GC allocations why not put in the work and write that pice in C++?

@runevision I'm tired of this types of posts, they don't serve for anything, are out of context, don't provide actual performance data and only wastes everyone's time Godot is a free, 113 mb and Open Source engine, go try it with 1 million raycasts if you want, then decide if it's for you

@runevision Juan’s view is unacceptable imho. A game engine can’t make these kind of performance assumptions. Writing performant code only when the current implementation becomes an issue means everything will eventually become an issue and need to be rewritten.

@runevision but you accepted the old broken gc that unity had until DOTS, it was a fundamental issue, and that didn't stop games like ori and the blind forest from being made, like yea it good to raise issues on this, but don't take it like if godot is underperformant

@runevision the big caveat here is that this conversation is about the C# API, which absolutely isn’t a primary focus of the project. it does suck for newcomers from Unity, but gdscript is recommended for a reason.

@runevision Unity had the same kind of problems years back (e.g. physics would allocate), and Unity staff had the same kind of stance / arrogance when we brought up issues to them. I think this is the kind of thing that happens when a project goes from niche to massive amount of people.

@runevision To be entirely honest, this doesn't change my trajectory towards using Godot, if I need something I'll just make it myself or see if it exists elsewhere. Super keen to be using godot.

Share this thread

Read on Twitter

View original thread

Navigate thread

1/29