Hi,
This is a problem that's been bugging me for a while now. I work as a science type, and I use Blender to build molecular structures with a large number of atoms. However, there's a limit to the number of UV-sphere atoms I can realistically generate, and I don't know why.
When I run a Python script that creates a large number of meshes, ie.
Code:import bpy, time t0 = time.time() for i in range(1000): bpy.ops.mesh.primitive_uv_sphere_add() if i % 100 == 0: print(time.time()-t0) t0 = time.time()
The script speed slows down exponentially
Code:0.000012 0.446588 0.463735 0.566176 0.725833 0.999464 1.381392 1.825786 2.463431 3.281711
I can get a performance boost by duplicating an added object
Code:bpy.ops.mesh.primitive_uv_sphere_add() for i in range(999): bpy.ops.object.duplicate()
but the exponential trend is still there.
I'm on Ubuntu with 32 GB memory, so I don't think that's the issue. Any thoughts?








Reply With Quote


Bookmarks