Boolean Operation is slowing down objects transformations even it it's disabled in the Modifier Panel #40426

Closed
opened 2014-05-29 17:25:28 +02:00 by Vitor Balbio · 8 comments

System Information
Win7 x64

Blender Version
f5055d8

Short description of error
if you have a boolean modifier applyied between high poly objects it's ok that it is slow to update so when you move/rotate/scale it we got some lag, but it happens too even if the object is disabled for the realtime 3dview and the render in the modifier panel. We should't have a check for that for true disable this object in the Boolean Operator?

Exact steps for others to reproduce the error
In this demo we have a result object , a high poly sphere and a low poly cube both applyied as a boolean modifier difference.
The sphere is turning the result a high poly and is slow to move it in the viewport, it's ok since it is a hgh poly mesh applying a boolean operation.
But the modifier that apply the boolean operation for the Cube is disabled for the viewport and the render, but even with this it's slow to move too as if it's applying the boolean operation, but it's not.

There's no change if the Boolean of the cube is in the top of in the bottom of the stack too. It's lag at the same way.
Bug.blend

**System Information** Win7 x64 **Blender Version** f5055d8 **Short description of error** if you have a boolean modifier applyied between high poly objects it's ok that it is slow to update so when you move/rotate/scale it we got some lag, but it happens too even if the object is disabled for the realtime 3dview and the render in the modifier panel. We should't have a check for that for true disable this object in the Boolean Operator? **Exact steps for others to reproduce the error** In this demo we have a result object , a high poly sphere and a low poly cube both applyied as a boolean modifier difference. The sphere is turning the result a high poly and is slow to move it in the viewport, it's ok since it is a hgh poly mesh applying a boolean operation. But the modifier that apply the boolean operation for the Cube is disabled for the viewport and the render, but even with this it's slow to move too as if it's applying the boolean operation, but it's not. There's no change if the Boolean of the cube is in the top of in the bottom of the stack too. It's lag at the same way. [Bug.blend](https://archive.blender.org/developer/F91850/Bug.blend)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @vitorbalbio-3

Added subscriber: @vitorbalbio-3

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Sergey Sharybin self-assigned this 2014-05-30 10:55:25 +02:00

Added subscriber: @LukasTonne

Added subscriber: @LukasTonne

This is a design limitation of dependency graph, which doesn't check on whether modifier is enabled or disabled when building the dependencies. Perhaps could be solved as a major dependency graph re-work project.

@LukasTonne, think you would want to keep your radar here :)

Thanks for the report, but not considered a bug.

This is a design limitation of dependency graph, which doesn't check on whether modifier is enabled or disabled when building the dependencies. Perhaps could be solved as a major dependency graph re-work project. @LukasTonne, think you would want to keep your radar here :) Thanks for the report, but not considered a bug.
Member

It seems that in this case the unnecessary updates by the depsgraph could well be avoided in principle. When the modifier is disabled the depsgraph should treat it as if it didn't exist, i.e. not call the updateDepgraph callbacks in such modifiers at all:

https://developer.blender.org/diffusion/B/browse/master/source/blender/blenkernel/intern/depsgraph.c$574

We have to be a bit careful with this though, there are lots of hacks that can make the depsgraph react to such a change in unexpected ways.

Also note that it is quite easy to produce only slightly more complicated cases where the data->data dependency of the boolean modifier is still created, due to lack of granularity in the depsgraph (e.g. a later modifier that is much simpler but also uses the cube's geometry would force the boolean modifier to update too). These issues would only be solved with the depsgraph refactoring.

Overall this is not strictly speaking a bug, but worth investigating, since there is a straightforward solution at least in theory.

It seems that in this case the unnecessary updates by the depsgraph could well be avoided in principle. When the modifier is disabled the depsgraph should treat it as if it didn't exist, i.e. not call the `updateDepgraph` callbacks in such modifiers at all: https://developer.blender.org/diffusion/B/browse/master/source/blender/blenkernel/intern/depsgraph.c$574 We have to be a bit careful with this though, there are lots of hacks that can make the depsgraph react to such a change in unexpected ways. Also note that it is quite easy to produce only slightly more complicated cases where the data->data dependency of the boolean modifier is still created, due to lack of granularity in the depsgraph (e.g. a later modifier that is much simpler but also uses the cube's geometry would force the boolean modifier to update too). These issues would only be solved with the depsgraph refactoring. Overall this is not strictly speaking a bug, but worth investigating, since there is a straightforward solution at least in theory.
Member

Added subscriber: @Sergey

Added subscriber: @Sergey
Member

Correction: @Sergey noted that we don't have a distinction in the depsgraph of render/viewport/preview/baking context etc. yet, so unfortunately we can't selectively disable these dependencies :S

Has to stay a todo until depsgraph refactor ...

Correction: @Sergey noted that we don't have a distinction in the depsgraph of render/viewport/preview/baking context etc. yet, so unfortunately we can't selectively disable these dependencies :S Has to stay a todo until depsgraph refactor ...
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#40426
No description provided.