Massive lag when enabling Viewport Shading -> Color -> Vertex and using Sculpt Vertex Colors #93123

Closed
opened 2021-11-16 12:15:26 +01:00 by Steffen Hartmann · 22 comments

System Information
Operating system: Windows-10-10.0.19042-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 472.47

Blender Version
Broken: version: 3.1.0 Alpha, branch: master, commit date: 2021-11-15 21:08, hash: 7e42ae7c1a
Worked: blender-3.0.0-alpha+master from 2021-10-25
Worked: 2.93.8
Caused by 03013d19d1

Short description of error
Massive lag and terrible viewport navigation (zoom, pan, rotate) performance when

  • sculpt vertex color is used on a high polygon mesh (4 or more million) and
  • if you enable Viewport Shading -> Color -> Vertex in one 3D viewport
  • have another viewport with another Color shading method make this particularly apparent

Note: Just enabling it once totally bricks that object - using other color modes afterwards (like Object or Random) doesn't help. Deleting the broken objects reverts the performance problems.

Exact steps for others to reproduce the error
from factory startup:

  • make sure experimental sculpt vertex colors are used:
bpy.context.preferences.experimental.use_sculpt_vertex_colors = True

#93123.blend

  • open .blend
  • navigate in both viewports (esp.the right one) and notice massive lags

Original report
Exact steps for others to reproduce the error
edit: only happens when you use these config files config.7z

  • open a new scene and add a sphere
  • use subdivision surface modifier with 10 levels on the default cube and apply it (viewport navigation like zoom, pan and rotate should be smooth at this point)
  • go to sculpt mode and use the sculpt vertex paint brush (don't enable vertex under "viewport shading -> color" yet)
  • leave sculpt mode and go to edit mode for example, viewport performance is still normal and smooth but now enable vertex under "viewport shading -> color"

Now you've got terrible zooming performance and initial lag whenever you rotate or pan the viewport. Feel free to choose object or material or any other color mode in the viewport shading menu - it won't help. You need to delete the object to restore viewport performance.

**System Information** Operating system: Windows-10-10.0.19042-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 472.47 **Blender Version** Broken: version: 3.1.0 Alpha, branch: master, commit date: 2021-11-15 21:08, hash: `7e42ae7c1a` Worked: blender-3.0.0-alpha+master from 2021-10-25 Worked: 2.93.8 Caused by 03013d19d1 **Short description of error** Massive lag and terrible viewport navigation (zoom, pan, rotate) performance when - sculpt vertex color is used on a high polygon mesh (4 or more million) and - if you enable `Viewport Shading` -> `Color` -> `Vertex` in one 3D viewport - have another viewport with another `Color` shading method make this particularly apparent Note: Just enabling it once totally bricks that object - using other color modes afterwards (like `Object` or `Random`) doesn't help. Deleting the broken objects reverts the performance problems. **Exact steps for others to reproduce the error** from factory startup: - make sure experimental sculpt vertex colors are used: ``` bpy.context.preferences.experimental.use_sculpt_vertex_colors = True ``` [#93123.blend](https://archive.blender.org/developer/F12886592/T93123.blend) - open .blend - navigate in both viewports (esp.the right one) and notice massive lags --- **Original report** **Exact steps for others to reproduce the error** edit: only happens when you use these config files [config.7z](https://archive.blender.org/developer/F12583078/config.7z) - open a new scene and add a sphere - use subdivision surface modifier with 10 levels on the default cube and apply it (viewport navigation like zoom, pan and rotate should be smooth at this point) - go to sculpt mode and use the sculpt vertex paint brush (don't enable vertex under "viewport shading -> color" yet) - leave sculpt mode and go to edit mode for example, viewport performance is still normal and smooth but now enable vertex under "viewport shading -> color" Now you've got terrible zooming performance and initial lag whenever you rotate or pan the viewport. Feel free to choose object or material or any other color mode in the viewport shading menu - it won't help. You need to delete the object to restore viewport performance.

Added subscriber: @Harti

Added subscriber: @Harti
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

Not seeing a performance hit here

Operating system: Linux-5.13.0-0.rc6.45.fc35.x86_64-x86_64-with-glibc2.34.9000 64 Bits
Graphics card: NVIDIA GeForce GTX 970M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 465.31

This could be related:

Could you check a fresh build again with this file (or provide one that truly shows this)?
#93123.blend

Not seeing a performance hit here ``` Operating system: Linux-5.13.0-0.rc6.45.fc35.x86_64-x86_64-with-glibc2.34.9000 64 Bits Graphics card: NVIDIA GeForce GTX 970M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 465.31 ``` This could be related: - 03013d19d1 - 622e6f05f1 Could you check a fresh build again with this file (or provide one that truly shows this)? [#93123.blend](https://archive.blender.org/developer/F11824217/T93123.blend)

@lichtwerk

I've downloaded the file, opened it with the latest 3.1 alpha for windows and switched to "vertex".
image.png

The problem occured right away. Zooming, panning and rotating in the viewport results in massive lags.

edit: It's hard to show the bug - you have to "feel" it. But here is a video 2021-11-18 19-57-01.mp4
I zoom in and out at the same speed but once i switch to vertex it looks and feels like the fps drop (more jumpy and less responsive). Pan and rotate result in a short pause before it actually performs the movement.

GPU driver, CPU chipset, Bios and Windows are up to date.

@lichtwerk I've downloaded the file, opened it with the latest 3.1 alpha for windows and switched to "vertex". ![image.png](https://archive.blender.org/developer/F11825855/image.png) The problem occured right away. Zooming, panning and rotating in the viewport results in massive lags. edit: It's hard to show the bug - you have to "feel" it. But here is a video [2021-11-18 19-57-01.mp4](https://archive.blender.org/developer/F11825873/2021-11-18_19-57-01.mp4) I zoom in and out at the same speed but once i switch to vertex it looks and feels like the fps drop (more jumpy and less responsive). Pan and rotate result in a short pause before it actually performs the movement. GPU driver, CPU chipset, Bios and Windows are up to date.
Member

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'

The bug doesn't happen when i use a fresh blender 3.1 nightly and don't importing my 3.0 settings. I'll do more research and might be able to give more details soon.

The bug doesn't happen when i use a fresh blender 3.1 nightly and don't importing my 3.0 settings. I'll do more research and might be able to give more details soon.

Ok it seems my 3.0 configs are the problem here. config.7z

Ok it seems my 3.0 configs are the problem here. [config.7z](https://archive.blender.org/developer/F12583078/config.7z)
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

Looks like this is caused by Preferences > Naviagtion > Orbit & Pan > Auto Depth.
This is known to take a performance hit in certain scenarios.

Broken: version: 3.1.0 Alpha, branch: master, commit date: 2021-11-15 21:08, hash: 7e42ae7c1a
Worked: blender-3.0.0-alpha+master from 2021-10-25

Now it would be good to check these again:

  • does it work in current builds if you have Preferences > Naviagtion > Orbit & Pan > Auto Depth OFF?
  • was it possibly broken in 3.0.0-alpha+master from 2021-10-25, too if you have Preferences > Naviagtion > Orbit & Pan > Auto Depth ON?
Looks like this is caused by `Preferences` > `Naviagtion` > `Orbit & Pan` > `Auto Depth`. This is known to take a performance hit in certain scenarios. > Broken: version: 3.1.0 Alpha, branch: master, commit date: 2021-11-15 21:08, hash: 7e42ae7c1a > Worked: blender-3.0.0-alpha+master from 2021-10-25 Now it would be good to check these again: - does it work in current builds if you have `Preferences` > `Naviagtion` > `Orbit & Pan` > `Auto Depth` OFF? - was it possibly broken in 3.0.0-alpha+master from 2021-10-25, too if you have `Preferences` > `Naviagtion` > `Orbit & Pan` > `Auto Depth` ON?

In #93123#1304824, @lichtwerk wrote:
Looks like this is caused by Preferences > Naviagtion > Orbit & Pan > Auto Depth.
This is known to take a performance hit in certain scenarios.

@lichtwerk
It's exactly this - when i disable auto depth the viewport performance is back to normal.
edit: Not totally back to normal though. It is still laggy and not useable but better in some way.

2022-02-13 16-47-32.mp4
Auto Depth disabled and sometimes a better viewport peformance but as you can see totally laggy when trying to work with that plane (and everything else). Deleting the sculpt vertex layers of the head sculpt totally elimates all the performance hits.

But what does Sculpt vertex Color trigger to have such a bad performance with (and without) auto depth enabled. Strange.

edit: I'm using a recent 3.2.0 Alpha right now.

> In #93123#1304824, @lichtwerk wrote: > Looks like this is caused by `Preferences` > `Naviagtion` > `Orbit & Pan` > `Auto Depth`. > This is known to take a performance hit in certain scenarios. @lichtwerk It's exactly this - when i disable auto depth the viewport performance is back to normal. edit: Not totally back to normal though. It is still laggy and not useable but better in some way. [2022-02-13 16-47-32.mp4](https://archive.blender.org/developer/F12865355/2022-02-13_16-47-32.mp4) Auto Depth disabled and sometimes a better viewport peformance but as you can see totally laggy when trying to work with that plane (and everything else). Deleting the sculpt vertex layers of the head sculpt totally elimates all the performance hits. But what does Sculpt vertex Color trigger to have such a bad performance with (and without) auto depth enabled. Strange. edit: I'm using a recent 3.2.0 Alpha right now.
Member

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'

Reminder the problem only occurs when i import/load the config files from my previous Blender version. When i delete userpref.blend or start with a fresh Blender version the bug doesn't happen at all.

I linked the probably faulty config files in the initial comment above.

Reminder the problem only occurs when i import/load the config files from my previous Blender version. When i delete userpref.blend or start with a fresh Blender version the bug doesn't happen at all. I linked the probably faulty config files in the initial comment above.
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

Sorry, when loading your config and disabling Auto Depth I cannot spot an issue/lag with #93123.blend.
Do you really have a difference there compared to a default config?

If this is just noticable in another file, please provide this.

Sorry, when loading your config and disabling `Auto Depth` I cannot spot an issue/lag with `#93123.blend`. Do you really have a difference there compared to a default config? If this is just noticable in another file, please provide this.

Latest version of Blender 3.2, Auto Depth disabled. Once i switch all viewports to vertex color the lag is gone.
Enabling just another color option brings back lags and Blender is unusable again. Enabling Auto Depth results in major lags independent from the color shading option - as known.
2022-02-25 10-55-36.mp4

Latest version of Blender 3.2, Auto Depth disabled. Once i switch all viewports to vertex color the lag is gone. Enabling just another color option brings back lags and Blender is unusable again. Enabling Auto Depth results in major lags independent from the color shading option - as known. [2022-02-25 10-55-36.mp4](https://archive.blender.org/developer/F12886525/2022-02-25_10-55-36.mp4)
Member

Changed status from 'Needs User Info' to: 'Confirmed'

Changed status from 'Needs User Info' to: 'Confirmed'
Member

OKi, can confirm now, with the two viewports (also that it worked better in 3e75f70acd, also that it is not a problem with regular vertex colors).
Will update the task description accordingly (and try to check when this broke).

OKi, can confirm now, with the two viewports (also that it worked better in 3e75f70acd, also that it is not a problem with regular vertex colors). Will update the task description accordingly (and try to check when this broke).
Member

Btw.: this "two-viewport-issue" seems to be independent of the config, I can repro that with Factory Defaults + experimental sculpt vertex colors, so will leave the config out of the report to not complicate things

Btw.: this "two-viewport-issue" seems to be independent of the config, I can repro that with Factory Defaults + experimental sculpt vertex colors, so will leave the config out of the report to not complicate things
Philipp Oeser changed title from Massive lag when enabling Viewport Shading -> Color -> Vertex and using Sculpt Vertex Color on a high poly mesh. to Massive lag when enabling Viewport Shading -> Color -> Vertex and using Sculpt Vertex Colors 2022-02-25 12:31:32 +01:00
Member

Added subscriber: @kevindietrich

Added subscriber: @kevindietrich

This issue was referenced by a911f075d7

This issue was referenced by a911f075d7aa823b215d4e7baf91ea4f5bd6099c

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Kévin Dietrich self-assigned this 2022-02-25 22:04:48 +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
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#93123
No description provided.