The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates.

godotengine.org | Twitter

+1 vote

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 (43 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

+8 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 (29,360 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 Frequently asked questions and 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 [email protected] with your username.