Page MenuHome

Regression: Sculpting using alpha brushes is slower in 3.2 than 3.1
Closed, ResolvedPublicBUG

Description

System Information
Operating system: Windows-10-10.0.19043-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 2060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.95

Blender Version
Broken: version: 3.2.2, branch: master, commit date: 2022-08-02 18:15, hash: rBbcfdb14560e7
Broken: version: 3.2.0, branch: master, commit date: 2022-06-08 10:22, hash: rBe05e1e369187
Worked: version: 3.1.2, branch: master, commit date: 2022-03-31 17:40, hash: rBcc66d1020c3b

Short description of error
Significant slowdown in sculpting when using "alpha brushes" with images to sculpt detail on high poly mesh

Exact steps for others to reproduce the error
0. Download blend file and provided alpha image. Place both in the same folder

  1. Open provided blend file
  2. Switch to modifiers tab
  3. Add "subdivision surface" modifier
  4. Switch to simple and set "levels viewport" to 5
  5. Apply modifier
  6. Add "Multiresolution" modifier.
  7. Click subdivide until Sculpt/Render reaches 5
  8. This creates object with 6+ mln faces to sculpt
  9. Start sculpting with provided brush.

In 3.1.2 as long as brush is covering small area, it's very responsive. Once it gets bigger during dragging, there is a slowdown, but each next stroke goes back to being responsive as long as brush area is small. In 3.2 performance is very slow from the beginning.
First version I see this in is 3.2.0 and it continues to current release 3.2.2

Event Timeline

Polycount to encounter this issue might be dependent on hardware capabilities, so it might be worth to tinker with numbers in step 4 and 7. Go lower or higher depending on hardware limitations.

Image is 2k 16-bit, which might be a bit overkill, but lowering it to 8-bit and 1k or even smaller doesn't change anything, so it does not seems to be related to image quality.

Omar Emara (OmarSquircleArt) changed the task status from Needs Triage to Confirmed.Aug 15 2022, 1:40 PM

I can reproduce the slow down between 3.1 and 3.2. The flame graphs are as follows. Let me know if you need a bisect.

3.1:

3.2:

Omar Emara (OmarSquircleArt) renamed this task from High poly mesh sculpt slow when using alpha brushes to Regression: Sculpting using alpha brushes is slower in 3.2 than 3.1.Aug 15 2022, 1:41 PM
Julien Kaspar (JulienKaspar) changed the subtype of this task from "Report" to "Bug".

This was my fault, I made a mistake when getting anchored brush to work properly with color and mask brushes. Should work now.

Can confirm as resolved. 3.3 build from Aug 17 is working as intended. Thanks for quick fix.