In my script I am importing a large amount of objects (+2500) but sharing the mesh data from one single primitive. While this has taken care of importing speed, it completely slows blender down. However when I import as individual primitives blender is very responsive even with + 2500 objects.
Why does blender slow down (frame rate, buttons, etc) when sharing mesh data blocks and is there anyway to aliviate this?
def create_mesh(name, radius, locat): #print (fList) # Create mesh and object mesh = bpy.data.meshes.new('Sphere') mesh = bpy.data.meshes['Primary'] obj = bpy.data.objects.new('Shpere', mesh) #obj.show_name = True obj.scale = (radius, radius, radius) obj.location = locat # Link object to scene and make active scn = bpy.context.scene scn.objects.link(obj) #scn.objects.active = obj #obj.select = True # Update mesh with new data mesh.update() return obj