blender/source/gameengine
Campbell Barton fcc23faa3a Added getitem/setitem access for KX_GameObject
ob.someProp = 10
can now be...
ob["someProp"] = 10

For simple get/set test with an objects 10 properties, this is ~30% faster.

Though I like the attribute access, its slower because it needs to lookup BGE attributes and methods (for parent classes as well as KX_GameObject class).

This could also be an advantage if there are collisions between new attributes added for 2.49 and existing properties a game uses.

Made some other small optimizations,
- Getting and setting property can use const char* as well as STR_String (avoids making new STR_Strings just to do the lookup).
- CValue::SetPropertiesModified() and CValue::SetPropertiesModified(), were looping through all items in the std::map, advancing from the beginning each time.
2009-04-02 05:38:05 +00:00
..
BlenderRoutines Fix for bug #18423: BGE lights in overlay scene also affected 2009-03-24 15:45:08 +00:00
Converter game engine compile fix for MSVC, game engine team might want to check. 2009-03-28 11:09:53 +00:00
Expressions Added getitem/setitem access for KX_GameObject 2009-04-02 05:38:05 +00:00
GameLogic BGE 2009-03-15 23:40:59 +00:00
GamePlayer Fix for bug #18423: BGE lights in overlay scene also affected 2009-03-24 15:45:08 +00:00
Ketsji Added getitem/setitem access for KX_GameObject 2009-04-02 05:38:05 +00:00
Network Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
Physics r19455 to Re-enable vertex welding for soft-bodies failed even on simple cases like a cube with scrambled mesh data. 2009-03-30 00:40:19 +00:00
PyDoc BGE API cleanup: ReplaceMeshActuator mesh attributes now returns a KX_MeshProxy. Fix a bug in KX_MeshProxy where the Python type was not set right. 2009-04-01 08:59:36 +00:00
Rasterizer Fix for bug #18423: BGE lights in overlay scene also affected 2009-03-24 15:45:08 +00:00
SceneGraph Minor speedups for the BGE 2009-02-25 06:43:03 +00:00
VideoTexture == FFMPEG == 2009-03-22 19:19:21 +00:00
CMakeLists.txt VideoTexture module. 2008-10-31 22:35:52 +00:00
Makefile Makefile fixes for compiling with new videotexture code. 2008-11-02 18:12:45 +00:00
SConscript Building the game engine with Solid/Sumo is now optional for scons using WITH_BF_SOLID. 2009-02-25 12:07:51 +00:00