|
|
|
|
|
by thehardsphere
3190 days ago
|
|
Do you know how the performance of GDScript execution compares to something like Python embedded in an engine where the more costly operations are run in compiled C or C++ code? Or even how the real Python performance in Godot compares to the GDScript performance? I tried to find this out, but the one "benchmark" I found was somewhat dubious. The Godot documentation claims that GDScript has all sorts of advantages over using other scripting languages that sound qualitatively superior, but it lacks quantitative comparisons. |
|
The advantage of GDScript is that all its primitives are the same as the C++ primitives that lie underneath. It's memory management model is the same as the engine's, etc... A GDScript function is a C++ function. GDScript is completely integrated into the engine, so if you're doing typical game-dev sort of things, there's literally no overhead.