Blender Git Commit Log
Git Commits -> Revision f8656d3
Revision f8656d3 by Campbell Barton (master) April 29, 2009, 12:43 (GMT) |
BGE alternative run mode for python controllers. Option to run a function in a module rather then a script from a python controller, this has a number of advantages. - No allocating and freeing the namespace dictionary for every time its triggered (hard to measure the overhead here, but in a test with calling 42240 scripts a second each defining 200 vars, using modules was ~25% faster) - Ability to use external python scripts for game logic. - Convenient debug option that lets you edit scripts while the game engine runs. |
Commit Details:
Full Hash: f8656d35101317a2b4a00eaf33f6d91d2d28dd7a
SVN Revision: 19974
Parent Commit: 988fbb8
Lines Changed: +190, -73
5 Modified Paths:
/source/blender/makesdna/DNA_controller_types.h (+6, -0) (Diff)
/source/blender/src/buttons_logic.c (+10, -1) (Diff)
/source/gameengine/Converter/KX_ConvertControllers.cpp (+32, -19) (Diff)
/source/gameengine/GameLogic/SCA_PythonController.cpp (+121, -48) (Diff)
/source/gameengine/GameLogic/SCA_PythonController.h (+21, -5) (Diff)
/source/blender/src/buttons_logic.c (+10, -1) (Diff)
/source/gameengine/Converter/KX_ConvertControllers.cpp (+32, -19) (Diff)
/source/gameengine/GameLogic/SCA_PythonController.cpp (+121, -48) (Diff)
/source/gameengine/GameLogic/SCA_PythonController.h (+21, -5) (Diff)