Blender Git Commit Log

Git Commits -> Revision 8a8a12e

Revision 8a8a12e by Benoit Bolsee (master)
July 30, 2008, 17:41 (GMT)
BGE patch: logic optimization part 2: remove inactive sensors from logic manager.

With this patch, only sensors that are connected to
active states are actually registered in the logic
manager. Inactive sensors won't take any CPU,
especially the Radar and Near sensors that use a
physical object for the detection: these objects
are removed from the physics engine.

To take advantage of this optimization patch, you
need to define very light idle state when the
objects are inactive: make them transparent, suspend
the physics, keep few sensors active (e,g a message
sensor to wake up), etc.

Commit Details:

Full Hash: 8a8a12ed846dc86b2f9b21582fd34d941beed7ed
SVN Revision: 15884
Parent Commit: d053636
Lines Changed: +157, -241

43 Modified Paths:

/source/gameengine/Converter/BL_BlenderDataConversion.cpp (+5, -5) (Diff)
/source/gameengine/Converter/KX_ConvertSensors.cpp (+3, -3) (Diff)
/source/gameengine/GameLogic/SCA_ActuatorEventManager.cpp (+2, -11) (Diff)
/source/gameengine/GameLogic/SCA_ActuatorEventManager.h (+0, -1) (Diff)
/source/gameengine/GameLogic/SCA_AlwaysEventManager.cpp (+2, -9) (Diff)
/source/gameengine/GameLogic/SCA_AlwaysEventManager.h (+0, -1) (Diff)
/source/gameengine/GameLogic/SCA_EventManager.cpp (+5, -8) (Diff)
/source/gameengine/GameLogic/SCA_EventManager.h (+4, -2) (Diff)
/source/gameengine/GameLogic/SCA_IObject.cpp (+23, -4) (Diff)
/source/gameengine/GameLogic/SCA_ISensor.cpp (+8, -1) (Diff)
/source/gameengine/GameLogic/SCA_ISensor.h (+3, -1) (Diff)
/source/gameengine/GameLogic/SCA_JoystickManager.cpp (+3, -8) (Diff)
/source/gameengine/GameLogic/SCA_JoystickManager.h (+0, -1) (Diff)
/source/gameengine/GameLogic/SCA_KeyboardManager.cpp (+3, -12) (Diff)
/source/gameengine/GameLogic/SCA_KeyboardManager.h (+0, -1) (Diff)
/source/gameengine/GameLogic/SCA_LogicManager.cpp (+1, -6) (Diff)
/source/gameengine/GameLogic/SCA_MouseManager.cpp (+3, -11) (Diff)
/source/gameengine/GameLogic/SCA_MouseManager.h (+0, -1) (Diff)
/source/gameengine/GameLogic/SCA_PropertyEventManager.cpp (+1, -10) (Diff)
/source/gameengine/GameLogic/SCA_PropertyEventManager.h (+0, -1) (Diff)
/source/gameengine/GameLogic/SCA_RandomEventManager.cpp (+2, -9) (Diff)
/source/gameengine/GameLogic/SCA_RandomEventManager.h (+0, -1) (Diff)
/source/gameengine/GameLogic/SCA_TimeEventManager.cpp (+5, -0) (Diff)
/source/gameengine/GameLogic/SCA_TimeEventManager.h (+1, -0) (Diff)
/source/gameengine/Ketsji/KXNetwork/KX_NetworkEventManager.cpp (+1, -16) (Diff)
/source/gameengine/Ketsji/KXNetwork/KX_NetworkEventManager.h (+0, -3) (Diff)
/source/gameengine/Ketsji/KX_GameObject.cpp (+1, -0) (Diff)
/source/gameengine/Ketsji/KX_NearSensor.cpp (+8, -0) (Diff)
/source/gameengine/Ketsji/KX_NearSensor.h (+1, -0) (Diff)
/source/gameengine/Ketsji/KX_RayEventManager.cpp (+2, -7) (Diff)
/source/gameengine/Ketsji/KX_RayEventManager.h (+0, -1) (Diff)
/source/gameengine/Ketsji/KX_TouchEventManager.cpp (+11, -20) (Diff)
/source/gameengine/Ketsji/KX_TouchEventManager.h (+1, -1) (Diff)
/source/gameengine/Ketsji/KX_TouchSensor.cpp (+8, -0) (Diff)
/source/gameengine/Ketsji/KX_TouchSensor.h (+1, -0) (Diff)
/source/gameengine/Physics/BlOde/OdePhysicsEnvironment.h (+1, -0) (Diff)
/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp (+25, -72) (Diff)
/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.h (+3, -8) (Diff)
/source/gameengine/Physics/common/PHY_IPhysicsEnvironment.h (+1, -0) (Diff)
/source/gameengine/Physics/Dummy/DummyPhysicsEnvironment.h (+1, -0) (Diff)
/source/gameengine/Physics/Sumo/Fuzzics/src/SM_Scene.cpp (+11, -6) (Diff)
/source/gameengine/Physics/Sumo/SumoPhysicsEnvironment.cpp (+6, -0) (Diff)
/source/gameengine/Physics/Sumo/SumoPhysicsEnvironment.h (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021