Async compilation

Started by
2 comments, last by WitchLord 10 years, 5 months ago

Does AngelScript support async compilation of scripts? In other words, can I compile a script on a background thread while my main thread keeps updating UI, graphics etc.?

Holy crap I started a blog - http://unobvious.typepad.com/
Advertisement

Yes, there is no problem in running the script compilation in a background thread while the application performs other actions. You can however only compile one script at a time.

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

Could you clarify? What's meant exactly by other actions? Can code be executed inside an engine while a script is being compiled by the same engine on another thread?

Holy crap I started a blog - http://unobvious.typepad.com/

Yes, it is possible to execute scripts with the same engine that is currently compiling another script in a background thread.

If you haven't done so already, make sure you read the recommendations in the manual for multithreaded applications.

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