Advertisement

Context duplication

Started by June 11, 2022 05:37 PM
2 comments, last by WitchLord 2 years, 5 months ago

Is it possible to duplicate context in the middle it's execution (like linux fork())?

I use old AS (2.31.2) and don't see this feature in public API, but maybe this is possible in newer versions?

Advertisement

With the latest WIP version you can do this by serializing the context to memory and then deserialize it to another context instance.

The feature is still in development but already working except possibly for some cases not tested yet. Unfortunately it is not documented yet, but you can see how it works in the test_feature app you can find the tests that I use as well as an initial implementation for serializing a context to memory.

http://svn.code.sf.net/p/angelscript/code/trunk/sdk/tests/test_feature/source/test_context.cpp

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