hhyyrylainen / Leviathan

Leviathan Game Engine
Other
17 stars 8 forks source link

Add JIT for AngelScript #6

Open hhyyrylainen opened 6 years ago

hhyyrylainen commented 6 years ago

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

NillyTheKid commented 5 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)

hhyyrylainen commented 5 years ago

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.