forked from bartvdbraak/blender
6b7c4e09e8
removed the need for casting python objects to Vectors pyobjects when performing vec/float arithmatic. a PyObject for coercing has also been removed from the vector struct so a little less memory will be used also. Benchmarked before and after this change ___________________________________ import Blender v= Blender.Mathutils.Vector m= Blender.Mathutils.Matrix a= v(1,2,3) b= v(3,2,1) c= m() t= Blender.sys.time() for i in xrange(20000000): a*b a*10 a/10 a+b b-a a*c print Blender.sys.time()-t _______________________________________ Before 63.5sec after 49.5 about 3 sec of that is looping |
||
---|---|---|
bin/.blender | ||
config | ||
doc | ||
extern | ||
intern | ||
po | ||
projectfiles | ||
projectfiles_vc7 | ||
release | ||
source | ||
tools | ||
COPYING | ||
Makefile | ||
README | ||
SConstruct |
Welcome to the fun world of open source. For instructions on building and installing Blender, please see the file named INSTALL. ---------------------.Blanguages and the .blender directory--------------------- The .blender directory holds various data files for Blender. In the 2.28a release those are the .Blanguages file containing a list of translations, the translations themselves and a default ttf font. Blender checks for the presence of this directory in several locations: - the current directory - your home directory - On OSX, the blender bundle is also checked - On Windows, the installation dir is checked. If you get a 'File ".Blanguages" not found' warning, try to copy the .blender dir to one of these locations (your home directory being recommended). -------------------------------------Links-------------------------------------- Getting Involved: http://www.blender.org/docs/get_involved.html Community: http://www.blender3d.org/Community/ Main blender development site: http://www.blender.org/ The Blender project homepage: http://projects.blender.org/projects/bf-blender/ Documentation: http://www.blender.org/modules.php?op=modload&name=documentation&file=index Bug tracker: http://projects.blender.org/tracker/?atid=125&group_id=9&func=browse Feature request tracker: http://projects.blender.org/tracker/?atid=128&group_id=9&func=browse