Open hhyyrylainen opened 6 years ago
Question about when the loading needs to occur Do we want the scripts to be loaded and compiled right before running or preferably when the engine is initializing (First I'm gonna need to figure out how to do all that tho)
The engine loads 0 scripts by itself. The game will tell the engine when it wants to load GameModules.
AFAIK the AngelScript JIT interface is only called when the script is already executing.
To speed up script execution a JIT compiler should be added. AFAIK the only public one for AngelScript is this: https://github.com/BlindMindStudios/AngelScript-JIT-Compiler
Before it works perfectly it should be an optional flag to enable it.
Required by: https://github.com/Revolutionary-Games/Thrive/issues/612