Page MenuHome

Existence of boolean modifier slows unrelated operations
Closed, ResolvedPublic

Description

System Information
Windows 8.1 x64, nvidia gtx970

Blender Version
Broken: 2.75.4 a8be746
Worked: 2.75.4 23f5407

Short description of error
Having a mesh on which i've add a boolean modifier, when I start a simple script that create some test mesh, the operation runs really slow on the last Blender version. (more than 60 seconds)
If I hide/delete the boolean modifiers, the script is really fast! (about 0.3 seconds)

No problem with version 2.75.4 23f5407

Exact steps for others to reproduce the error

  1. using the .blend attached, just run the script first (fast execution, look at the console)
  2. delete all object create by the script, unhide "arc" and turn on the boolean mod, then run again the script (slow execution)

Event Timeline

Nicola (n1k0l4) set Type to Bug.
Nicola (n1k0l4) added a subscriber: Nicola (n1k0l4).
Nicola (n1k0l4) created this task.
Nicola (n1k0l4) claimed this task.
Nicola (n1k0l4) raised the priority of this task from to Needs Triage by Developer.
Nicola (n1k0l4) removed Nicola (n1k0l4) as the assignee of this task.Aug 27 2015, 4:13 PM
Bastien Montagne (mont29) triaged this task as Needs Information from User priority.

You cannot expect us to spare some time investigating what happens in such a .blend - please search for what part goes slow in your code, and submit here a simple way to reproduce it, not based on a complete work-project file & script…

Sorry for misunderstanding.

Slowest parts of the script are:

  • add a text (py.ops.object.text_add())
  • convert it to mesh (bpy.ops.object.convert(target='MESH'))

you can reproduce the problem starting with a blank file:

  1. add two high poly sphere (200k poly)
  2. add a boolean mod to the first with the second (ex. sphere A less sphere B)
  3. then try to add a simple text and converting to mesh
  4. turn off boolean mod
  5. repeat point 3 and see how much faster is.

@Nicola (n1k0l4),

I tried to redo the bug, but wasn't able to (in 275a and master).
The text to mesh conversion always runs fast.
Even when theres a boolean modifier in the scene which takes a few seconds to complete.

Please make a simple test file where converting the text to a mesh is slow, when the boolean modifier is enabled.

Campbell Barton (campbellbarton) renamed this task from Slow performance executing a simple script to Existence of boolean modifier slows unrelated operations.Aug 28 2015, 3:52 AM

Here there's the file asked.

If i try to add a text or convert it to mesh with the boolean on sphereA ON, the operation is slow;
if I turn boolean OFF, the operation is immediate{F228665}

Bastien Montagne (mont29) raised the priority of this task from Needs Information from User to Confirmed, Medium.

I can confirm this here - I think what happens is that in current master, boolean (aka DM stack) gets recomputed when you add text object, while in 2.74 it did not. @Sergey Sharybin (sergey) this sounds like some depsgraph issue?