0 votes

Im one of those that is seeking for performance over all, in a numerical comparision of 1 (slow) to 10 (fast), what amount does GDscript get over c++ on the release?

I could use GDscript for some game big requirements, but in my case, it is like cube2...

in Engine by (42 points)
edited by

Comparing script language and a compiled static type language is unfair... The later one is almost always faster than the previous one.

1 Answer

+6 votes
Best answer

If you are seeking for performance above all, C++ is the way to go.

GDScript is ~100 times slower than C++, so you should only use it for very high level stuff, like "do this when walking in this area", or "Spawn enemy here every X seconds".

The best tradeoff is to find what requires the most CPU, implement it in C++ and expose high level functions to GDScript/Nodes/Resources, so you can achieve great level of tweak with good performance.

by (27,958 points)
selected by

Thanks is good to know it.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.