Determinism

Started by
1 comment, last by WitchLord 2 years, 5 months ago

Hello,

I'm interested in leveraging AngelScript within a deterministic system; has there been any consideration to this requirement within the design of the language's virtual-machine/runtime?

Advertisement

Hi MattJay,

Yes, I have made some considerations for determinism. It's not a primary goal with the library but it is possible to use angelscript in real time applications with deterministic response times. It is already used in some applications like this, e.g. BlueCat's audio plugin

You'll want to turn off the garbage collector, and design your scripts so that circular references are avoided (so garbage collection is not needed). You'll also want to use context pools to avoid dynamically allocating these when needed. Likewise you want to set up the stack space for the contexts with enough space for the execution, and without dynamically extending the stack space.

Regards,
Andreas

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement