blender/source
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
..
blender Clean up for the imminent migration from SVN to GIT. 2009-03-31 22:34:34 +00:00
creator Another patch by GSR 2009-03-23 18:11:46 +00:00
darwin Clean up for the imminent migration from SVN to GIT. 2009-03-31 22:34:34 +00:00
gameengine Added getitem/setitem access for KX_GameObject 2009-04-02 05:38:05 +00:00
icons Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
kernel Merge from trunk 2008-09-19 14:15:36 +00:00
CMakeLists.txt Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
Makefile [#18260] FMOD Removal 2009-03-24 09:09:10 +00:00
nan_compile.mk Added BF_PROFILE (same name as in scons files) option. 2009-03-23 19:52:49 +00:00
nan_definitions.mk Moved EXR settings to OS related zone. 2009-03-28 19:31:22 +00:00
nan_link.mk patch #8583: Add support for gcc on irix 2008-11-24 14:15:05 +00:00
nan_subdirs.mk Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
nan_warn.mk Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SConscript * Minor cleanup of SCons files 2008-10-22 11:28:10 +00:00