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...

asked May 10, 2016 in Engine by RODGIMA (47 points)
edited May 11, 2016 by Bojidar Marinov

1 Answer

+5 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.

answered May 10, 2016 by Zylann (21,019 points)
selected May 11, 2016 by RODGIMA

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.