General question: How is GDScript compiled into executable?

You can chose to have them saved as plain text in the export, tokenised, compressed and or encrypted. Basic compilation if you wish to call it that, is done each time the script is loaded and parsed by the engine.

I add my own encryption to them as well so to be doubly sure…

Scripts are parsed, error checked, tokenised and objectised as a whole before execution, this is far beyond basic interpreted which evaluates each line as it runs. The same runtime server exists in the development engine and the distributable engine. Catching errors in calls to other scripts, especially variable/key names generally only happens at runtime though. Preloading scripts into other scripts, especially when defined as a class, can mitigate this even further.

Trig

1 Like