Sculpt hipoly with mask modifier have low performance #84732

Closed
opened 2021-01-15 02:00:22 +01:00 by Vyacheslav Kobozev · 11 comments

System Information
Operating system: Windows-7-6.1.7601-SP1 64 Bits
Graphics card: GeForce GTX 660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.71

Blender Version
Broken: version: 2.92.0 Alpha, branch: master, commit date: 2021-01-09 14:02, hash: 6154aa1529
Worked: 2.91 release

Short description of error
I am trying to use mask modifier with hi-poly mesh in sculpt mode. And it looks like it recalculates each time, despite topology do not change.

2021-01-15_03-50-17.mp4

Take file apply subdiv and compare sculpt speed with and without mask modifier.
sculpt and mask modifier.blend

**System Information** Operating system: Windows-7-6.1.7601-SP1 64 Bits Graphics card: GeForce GTX 660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.71 **Blender Version** Broken: version: 2.92.0 Alpha, branch: master, commit date: 2021-01-09 14:02, hash: `6154aa1529` Worked: 2.91 release **Short description of error** I am trying to use mask modifier with hi-poly mesh in sculpt mode. And it looks like it recalculates each time, despite topology do not change. [2021-01-15_03-50-17.mp4](https://archive.blender.org/developer/F9579650/2021-01-15_03-50-17.mp4) Take file apply subdiv and compare sculpt speed with and without mask modifier. [sculpt and mask modifier.blend](https://archive.blender.org/developer/F9579653/sculpt_and_mask_modifier.blend)

Added subscriber: @Vyach

Added subscriber: @Vyach
Member

Added subscriber: @filedescriptor

Added subscriber: @filedescriptor
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

I can confirm that there seems to be a regression going from 2.91 to 2.92. The performance is noticeably worse.

I can confirm that there seems to be a regression going from 2.91 to 2.92. The performance is noticeably worse.
Member

It seems to be good in 2.93 for some reason. @Vyach can you confirm that?

It seems to be good in 2.93 for some reason. @Vyach can you confirm that?

Added subscriber: @T.R.O.Nunes

Added subscriber: @T.R.O.Nunes

In #84732#1096739, @filedescriptor wrote:
It seems to be good in 2.93 for some reason. @Vyach can you confirm that?

Not him but I can confirm that this actually is an issue for me in latest 2.93.0 Alpha build. Performance becomes noticeably worse with mask on. However, interesting to note that it is unnoticeable at low poly counts (1-10 000) and really only starts to 'feel' laggy at +50k faces. Would seem to indicate that when you notice it depends on your system and tool.
I tested both bringing preferences from 2.92 and with clean slate, and with the vertex group selection flipped and not flipped. In all cases it seems to work fine at low poly but going high poly counts using Mask modifier starts chugging fair bit earlier.

> In #84732#1096739, @filedescriptor wrote: > It seems to be good in 2.93 for some reason. @Vyach can you confirm that? Not him but I can confirm that this actually is an issue for me in latest 2.93.0 Alpha build. Performance becomes noticeably worse with mask on. However, interesting to note that it is unnoticeable at low poly counts (1-10 000) and really only starts to 'feel' laggy at +50k faces. Would seem to indicate that when you notice it depends on your system and tool. I tested both bringing preferences from 2.92 and with clean slate, and with the vertex group selection flipped and not flipped. In all cases it seems to work fine at low poly but going high poly counts using Mask modifier starts chugging fair bit earlier.
Member

Added subscriber: @PabloDobarro

Added subscriber: @PabloDobarro
Member

Changed status from 'Confirmed' to: 'Archived'

Changed status from 'Confirmed' to: 'Archived'
Member

This is a limitation. When sculpt mode detects that there are enabled modifiers in the stack it always disables PBVH partial updates drawing an updates the entire mesh. It does not take into account if the modifiers is actually doing any changes to the geometry (I don't think there is a way to check this without evaluating all modifiers). You can also reproduce this limitation by adding an array modifier and se the copies to 1.

This is a limitation. When sculpt mode detects that there are enabled modifiers in the stack it always disables PBVH partial updates drawing an updates the entire mesh. It does not take into account if the modifiers is actually doing any changes to the geometry (I don't think there is a way to check this without evaluating all modifiers). You can also reproduce this limitation by adding an array modifier and se the copies to 1.

@PabloDobarro sad, but not critical ofc.

@PabloDobarro sad, but not critical ofc.
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
4 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#84732
No description provided.