Blender Git Commit Log

Git Commits -> Revision 84966c3

Revision 84966c3 by Mitchell Stokes (master)
December 22, 2012, 05:38 (GMT)
BGE: Committing async LibLoad from Swiss. This does the lib loading in a separate thread to keep the BGE from freezing. Here is an example from the docs:

# Print a message when an async LibLoad is done
import bge

def finished_cb(status):
print("Library (%s) loaded in %.2fms." % (status.libraryName, status.timeTaken))

bge.logic.LibLoad('myblend.blend', 'Scene', async=True).onFinish = finished_cb

LibLoad() now returns a KX_LibLoadStatus object for information on the library loading. LibNew() and LibFree() are unaffected by this commit. In other words, the async option only works for LibLoad(). Furthermore it only works for Scenes, not Actions or Meshes.

Commit Details:

Full Hash: 84966c3d0ae2d39fa4e691ed0131d8b94f8785e4
SVN Revision: 53257
Parent Commit: 8062bcd
Lines Changed: +553, -27

2 Added Paths:

/source/gameengine/Converter/KX_LibLoadStatus.cpp (+251, -0) (View)
/source/gameengine/Converter/KX_LibLoadStatus.h (+85, -0) (View)

11 Modified Paths:

/doc/python_api/rst/bge.logic.rst (+8, -2) (Diff)
/doc/python_api/rst/bge.types.rst (+38, -0) (Diff)
/source/gameengine/Converter/BL_BlenderDataConversion.cpp (+9, -1) (Diff)
/source/gameengine/Converter/CMakeLists.txt (+2, -0) (Diff)
/source/gameengine/Converter/KX_BlenderSceneConverter.cpp (+123, -13) (Diff)
/source/gameengine/Converter/KX_BlenderSceneConverter.h (+14, -3) (Diff)
/source/gameengine/Ketsji/KX_ISceneConverter.h (+3, -0) (Diff)
/source/gameengine/Ketsji/KX_KetsjiEngine.cpp (+2, -0) (Diff)
/source/gameengine/Ketsji/KX_PythonInit.cpp (+12, -8) (Diff)
/source/gameengine/Ketsji/KX_PythonInitTypes.cpp (+2, -0) (Diff)
/source/gameengine/Ketsji/KX_Scene.cpp (+4, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021