Sculpt mode. Performance issues after enable/disable dyntopo with zoom #79146

Closed
opened 2020-07-21 19:55:58 +02:00 by Vyacheslav Kobozev · 26 comments

{F8711949}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 445.87

Blender Version
Broken: version: 2.90.0 Alpha, branch: master, commit date: 2020-07-10 20:07, hash: d2b910fafe
Same issue with blender-2.90.0-731d9f0bfa40-windows64 and 2.83.2 release

Short description of error

  1. Grab brush do not use dyntopo even in dyntopo mode as you know. But it start to work very slow with dyntopo sometimes even without zoom.
  2. After I switch off dyntopo back, all brushes start to work very slow.

So to reproduce:

  1. Zoom in to heavy mesh.
  2. Check speed of brushes on it.
  3. Switch to dyntopo, use grab a little.
  4. Switch back, check performance again.

I assume, that problems caused by dynamic mesh load/unload.
Please make it optional. It causes low fps, especially on dyntopo zooms.

{[F8711949](https://archive.blender.org/developer/F8711949/2020-07-21_21-01-12.mp4)}**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 445.87 **Blender Version** Broken: version: 2.90.0 Alpha, branch: master, commit date: 2020-07-10 20:07, hash: `d2b910fafe` Same issue with blender-2.90.0-731d9f0bfa40-windows64 and 2.83.2 release **Short description of error** 1. Grab brush do not use dyntopo even in dyntopo mode as you know. But it start to work very slow with dyntopo sometimes even without zoom. 2. After I switch off dyntopo back, all brushes start to work very slow. So to reproduce: 1. Zoom in to heavy mesh. 2. Check speed of brushes on it. 3. Switch to dyntopo, use grab a little. 4. Switch back, check performance again. I assume, that problems caused by dynamic mesh load/unload. Please make it optional. It causes low fps, especially on dyntopo zooms.

Added subscriber: @Vyach

Added subscriber: @Vyach

#83808 was marked as duplicate of this issue

#83808 was marked as duplicate of this issue
Vyacheslav Kobozev changed title from Sculpt mode. Performance issues to Sculpt mode. Performance issues with zoom 2020-07-21 20:06:26 +02:00

Added subscriber: @iss

Added subscriber: @iss

I am unable to reproduce this issue. But this sounds more like a feature request than a bug.

I am unable to reproduce this issue. But this sounds more like a feature request than a bug.

try with this file
tstт1.7z

try with this file [tstт1.7z](https://archive.blender.org/developer/F8713560/tstт1.7z)

Can't reproduce even on your file. Does this happen when you click on File > Defaults > Load Factory Settings and retry steps to reproduce?

Can't reproduce even on your file. Does this happen when you click on File > Defaults > Load Factory Settings and retry steps to reproduce?

@iss yes, the same issue with factory settings.
Brush have no automasking. Mesh do not have multires.
2020-07-23_12-49-47.mp4

And here, when I add 2nd viewport Blender just hanging :(
2020-07-23_12-52-54.mp4

This problem started to annoy me since autohide was implemented. But usually I keep second viewport with fully loaded mesh, so it not appear in this case.

@iss yes, the same issue with factory settings. Brush have no automasking. Mesh do not have multires. [2020-07-23_12-49-47.mp4](https://archive.blender.org/developer/F8715633/2020-07-23_12-49-47.mp4) And here, when I add 2nd viewport Blender just hanging :( [2020-07-23_12-52-54.mp4](https://archive.blender.org/developer/F8715638/2020-07-23_12-52-54.mp4) This problem started to annoy me since autohide was implemented. But usually I keep second viewport with fully loaded mesh, so it not appear in this case.

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

I am not sure what the problem could be. It would definitly help if you could narrow this down somehow and I will re-check. Otherwise another developer with setup similar to yours would have to reproduce this.

I am not sure what the problem could be. It would definitly help if you could narrow this down somehow and I will re-check. Otherwise another developer with setup similar to yours would have to reproduce this.

@iss okay, I'll try to find more details.

@iss okay, I'll try to find more details.

One more setup with same issue.

win 10 pro
CPU intel i5 9400 2.9GHz
Blender version: 2.83.2, master, commit date: 2020-07-09 05:50, hash: 239fbf7d93, type: Release
build date: 2020-07-09, 04:24:13
GPU GeForce GTX 1650 SUPER/PCIe/SSE2 NVIDIA
driver 4.5.0 NVIDIA 451.48

Another test on my machine (config in the topic)
version: 2.82 (sub 7), branch: master, commit date: 2020-03-12 05:06, hash: 375c7dc4ca
Have freezes for brush circle after making stroke, but not for brush action
2020-07-25_11-30-41.mp4

version: 2.80 (sub 75), branch: master, commit date: 2019-07-29 14:47, hash: f6cb5f5449 — fps for brush circle a bit slower, but not so noticable.

One more setup with same issue. win 10 pro CPU intel i5 9400 2.9GHz Blender version: 2.83.2, master, commit date: 2020-07-09 05:50, hash: 239fbf7d936f, type: Release build date: 2020-07-09, 04:24:13 GPU GeForce GTX 1650 SUPER/PCIe/SSE2 NVIDIA driver 4.5.0 NVIDIA 451.48 Another test on my machine (config in the topic) version: 2.82 (sub 7), branch: master, commit date: 2020-03-12 05:06, hash: `375c7dc4ca` Have freezes for brush circle after making stroke, but not for brush action [2020-07-25_11-30-41.mp4](https://archive.blender.org/developer/F8719557/2020-07-25_11-30-41.mp4) version: 2.80 (sub 75), branch: master, commit date: 2019-07-29 14:47, hash: `f6cb5f5449` — fps for brush circle a bit slower, but not so noticable.

Common issue. With heavy mesh, fps in viewport go much lower just after enabling Dyntopo.
2020-08-27_10-52-18.mp4

CPU and GPU usage during rotation without dyntopo
50062246.png
50073046.png

And with dyntopo
50083648.png
50094348.png

What else can I test by my own?

Common issue. With heavy mesh, fps in viewport go much lower just after enabling Dyntopo. [2020-08-27_10-52-18.mp4](https://archive.blender.org/developer/F8813739/2020-08-27_10-52-18.mp4) CPU and GPU usage during rotation without dyntopo ![50062246.png](https://archive.blender.org/developer/F8813741/50062246.png) ![50073046.png](https://archive.blender.org/developer/F8813740/50073046.png) And with dyntopo ![50083648.png](https://archive.blender.org/developer/F8813745/50083648.png) ![50094348.png](https://archive.blender.org/developer/F8813744/50094348.png) What else can I test by my own?

Tested under Lubuntu. Issue is the same. So it is not OS/driver issue.

Tested under Lubuntu. Issue is the same. So it is not OS/driver issue.

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk

I am out of ideas with this case.

@lichtwerk can you check this?

I am out of ideas with this case. @lichtwerk can you check this?
Member

Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'

Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'
Member

I can confirm.

For me, it is even simpler to reproduce:

  • open highpoly sculpt file (or just throw a subdiv level 3-4 modifier on the default sculpting template sphere, apply)
  • zoom in
  • do a stroke (just to check "good" performance)
  • enable Dyntopo
  • disable Dyntopo
  • do another stroke (notice "bad" performance)

it looks like 2.82 behaves better, but I have not timed this yet

I can confirm. For me, it is even simpler to reproduce: - open highpoly sculpt file (or just throw a subdiv level 3-4 modifier on the default sculpting template sphere, apply) - zoom in - do a stroke (just to check "good" performance) - enable Dyntopo - disable Dyntopo - do another stroke (notice "bad" performance) it looks like 2.82 behaves better, but I have not timed this yet
Philipp Oeser changed title from Sculpt mode. Performance issues with zoom to Sculpt mode. Performance issues after enable/disable dyntopo with zoom 2020-08-28 16:03:56 +02:00

In #79146#1004464, @lichtwerk wrote:
it looks like 2.82 behaves better, but I have not timed this yet

Even 2.79 have lower fps after еnabling dyntopo and slower Grab brush, despite Grab do not create new topology.

> In #79146#1004464, @lichtwerk wrote: > it looks like 2.82 behaves better, but I have not timed this yet Even 2.79 have lower fps after еnabling dyntopo and slower Grab brush, despite Grab do not create new topology.

Strange thing.
In 2.79 fps is low with dintopo+solid but become fast again with dyntopo+material
2020-08-29_17-46-25.mp4

With dyntopo enbled mesh uploading (unhiding) is few times slower.
2020-08-29_17-53-11.mp4

So it looks like a lot of unnecessary geometry uploading and unloading

Strange thing. In 2.79 fps is low with dintopo+solid but become fast again with dyntopo+material [2020-08-29_17-46-25.mp4](https://archive.blender.org/developer/F8819062/2020-08-29_17-46-25.mp4) With dyntopo enbled mesh uploading (unhiding) is few times slower. [2020-08-29_17-53-11.mp4](https://archive.blender.org/developer/F8819072/2020-08-29_17-53-11.mp4) So it looks like a lot of unnecessary geometry uploading and unloading

Added subscriber: @MeshVoid

Added subscriber: @MeshVoid

Same performance issue appears on zoom after few minutes of work. Even without dyntopo.

Same performance issue appears on zoom after few minutes of work. Even without dyntopo.

Added subscriber: @JerBot

Added subscriber: @JerBot

I'm experiencing a very similar issue, although I am not using dyntypo.
To trigger the lag, I only need to jump in and out of sculpt mode.
To fix, I zoom out and zoom in.

I'm on latest build(s) of Manjaro Linux using an nVidia 1060 w/ latest drivers (455). Can replicate this problem in Blender 2.91 and 2.92 Alpha (Dec 24th).

In the example, I'm using a freshly imported hi-poly OBJ file

  1. I activate sculpt mode and start sculpting and it's laggy.
  2. I zoom out to view the whole model, and immediately zoom back in and everything super fast and responsive.
  3. I deactivate and reactivate sculpt mode, and it's laggy again.
  4. I zoom out then in, and it's fixed again.
  5. repeat

Video demonstration.
2020-12-24_22-35-30_lagZoomFixDemo.mp4

Here's the Sketchfab (OBJ) model I'm testing on, which you can download and test for yourself.

Neytiri - Na'vi bust : by Reverse Imagineering
https://skfb.ly/6CINX

I'm now wondering just how long I've been experiencing this issue, as I've noticed significant jumps and drops in performance... for the past few months, at least. Most of the time I've been just experiencing the lag, and always wondering how everyone is able to have such snappy feedback. I often work with photogrammetry scans.

P.S. I hope you guys have good garbage collecting, as I've uploaded the demo video a handful of times, with different names, before I got it correct. Sry!

I'm experiencing a very similar issue, although I am **not using dyntypo**. To trigger the lag, I only need to jump in and out of sculpt mode. To fix, I zoom out and zoom in. I'm on latest build(s) of Manjaro Linux using an nVidia 1060 w/ latest drivers (455). Can replicate this problem in Blender 2.91 and 2.92 Alpha (Dec 24th). In the example, I'm using a freshly imported hi-poly OBJ file 1. I activate sculpt mode and start sculpting and it's laggy. 2. I zoom out to view the whole model, and immediately zoom back in and everything super fast and responsive. 3. I deactivate and reactivate sculpt mode, and it's laggy again. 4. I zoom out then in, and it's fixed again. 5. *repeat* Video demonstration. [2020-12-24_22-35-30_lagZoomFixDemo.mp4](https://archive.blender.org/developer/F9529442/2020-12-24_22-35-30_lagZoomFixDemo.mp4) Here's the Sketchfab (OBJ) model I'm testing on, which you can download and test for yourself. **Neytiri - Na'vi bust : by Reverse Imagineering** https://skfb.ly/6CINX I'm now wondering just how long I've been experiencing this issue, as I've noticed significant jumps and drops in performance... for the past few months, at least. Most of the time I've been just experiencing the lag, and always wondering how everyone is able to have such snappy feedback. I often work with photogrammetry scans. P.S. I hope you guys have good garbage collecting, as I've uploaded the demo video a handful of times, with different names, before I got it correct. Sry!

Added subscriber: @Likkez-2

Added subscriber: @Likkez-2

This issue was referenced by 2ed6055209

This issue was referenced by 2ed605520959eca9c0ab3c497c85578e138936b4
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Pablo Dobarro self-assigned this 2021-01-05 21:03:22 +01:00
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
7 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#79146
No description provided.