Regression: Sculpt: Hovering with pose brush on dense mesh freezes Blender #127259

Closed
opened 2024-09-06 17:18:29 +02:00 by Nika Kutsniashvili · 6 comments
Contributor

System Information
Operating system: Windows-10-10.0.19043-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1650/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 560.70

Blender Version
Broken: version: 4.3.0 Alpha, branch: main, commit date: 2024-07-09 23:04, hash: 3b23dc4b4d47
Broken: version: 4.3.0 Alpha, branch: main, commit date: 2024-09-06 09:15, hash: 73f2bdd1ed1b
Worked: version: 4.3.0 Alpha, branch: main, commit date: 2024-06-21 23:31, hash: 8f95c2ce9fcf

Short description of error
While checking performance in 4.2 vs 4.3 I noticed that on subdivided mesh (6.2mil faces) choosing pose brush and trying to hover over the mesh freezes Blender for a while, and performance doesn't improve. After its unfrozen, trying to hover again freezes again.

Exact steps for others to reproduce the error

  1. Subdivide default cube 10 times to get 6.2 mil faces, apply subdivision
  2. Go to sculpt mode, choose Pose brush and try to hover over the mesh
**System Information** Operating system: Windows-10-10.0.19043-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 1650/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 560.70 **Blender Version** Broken: version: 4.3.0 Alpha, branch: main, commit date: 2024-07-09 23:04, hash: `3b23dc4b4d47` Broken: version: 4.3.0 Alpha, branch: main, commit date: 2024-09-06 09:15, hash: `73f2bdd1ed1b` Worked: version: 4.3.0 Alpha, branch: main, commit date: 2024-06-21 23:31, hash: `8f95c2ce9fcf` **Short description of error** While checking performance in 4.2 vs 4.3 I noticed that on subdivided mesh (6.2mil faces) choosing pose brush and trying to hover over the mesh freezes Blender for a while, and performance doesn't improve. After its unfrozen, trying to hover again freezes again. **Exact steps for others to reproduce the error** 1. Subdivide default cube 10 times to get 6.2 mil faces, apply subdivision 2. Go to sculpt mode, choose Pose brush and try to hover over the mesh
Nika Kutsniashvili added the
Status
Needs Triage
Severity
Normal
Type
Bug
labels 2024-09-06 17:18:30 +02:00
Nika Kutsniashvili changed title from Regression: Hovering with pose brush on dense mesh freezes Blender to Regression: Sculpt: Hovering with pose brush on dense mesh freezes Blender 2024-09-06 17:26:46 +02:00
Member

Can confirm

Can confirm
Member

Updated original post, regression happened between

8f95c2ce9fcf ~ 3b23dc4b4d47

Updated original post, regression happened between `8f95c2ce9fcf` ~ `3b23dc4b4d47`
Member

Doing some profiling on this, the vast majority of processing time (86%) is spent on vert_neighbors_get_mesh

Doing some profiling on this, the vast majority of processing time (86%) is spent on `vert_neighbors_get_mesh`
Member

Somehow the bad commit here is 7b0ea0f1b4

Somehow the bad commit here is 7b0ea0f1b4309d8445b5027f1bfe8e0cbe90a91c
Member

The cause of the slowdown is the "Pose Origin Offset" field changing from a default of 0.0 to 0.35, requiring more preprocessing of data both when using the brush and updating the preview

@JulienKaspar - Do you have more context here on the decision to update this value as part of the Brush Asset project? Is this something we should revert, or is this something we'll need to find a way to optimize?

The cause of the slowdown is the "Pose Origin Offset" field changing from a default of 0.0 to 0.35, requiring more preprocessing of data both when using the brush and updating the preview @JulienKaspar - Do you have more context here on the decision to update this value as part of the Brush Asset project? Is this something we should revert, or is this something we'll need to find a way to optimize?
Member

I never realized that this setting is what caused the brush to perform so terribly ...
For now I'm totally in favor of setting the Pose Origin setting to 0.0 for the brush asset.

I'm even if favor of removing it until it is optimized and working like intended. It always offsets the pose origin in a straight line between itself and the cursor center, which is often very unintuitive and leads to the offset being off-target, or even completely outside of the object.

I never realized that this setting is what caused the brush to perform so terribly ... For now I'm totally in favor of setting the Pose Origin setting to 0.0 for the brush asset. I'm even if favor of removing it until it is optimized and working like intended. It always offsets the pose origin in a straight line between itself and the cursor center, which is often very unintuitive and leads to the offset being off-target, or even completely outside of the object.
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2024-09-11 20:07:55 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
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
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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#127259
No description provided.