The "Texture Paint" mode is very slow. #101966

Closed
opened 2022-10-21 07:02:15 +02:00 by Konstantin · 15 comments

System Information
Operating system: Arch Linux, Windows 10/11.
Graphics card: RTX 2070, RTX 3070Ti.

Blender Version
Broken: All version 2.83 - 3.3.
Worked: Never worked.

Short description of error
The "Texture Paint" mode is very slow. I have a powerful video card, but even a 1024*1024 texture is slow when drawing.

Peek 2022-10-21 07-55.mp4

**System Information** Operating system: Arch Linux, Windows 10/11. Graphics card: RTX 2070, RTX 3070Ti. **Blender Version** Broken: All version 2.83 - 3.3. Worked: Never worked. **Short description of error** The "Texture Paint" mode is very slow. I have a powerful video card, but even a 1024*1024 texture is slow when drawing. [Peek 2022-10-21 07-55.mp4](https://archive.blender.org/developer/F13733669/Peek_2022-10-21_07-55.mp4)
Author

Added subscriber: @imlegr

Added subscriber: @imlegr

Added subscriber: @mano-wii

Added subscriber: @mano-wii

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

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

I noticed in the video that Mesh has the Subdivision modifier. Is it also slow without this modifier?
Does the GPU Subdivision option in the preferences make any difference?

Please open Blender's installation directory and double click on the blender_debug_gpu.cmd. This will start Blender in debug mode and create log files.
Try to reproduce the error again.
Once you close Blender manually the Windows Explorer should open and show you up to two files, a debug log and the system information.
Add them to your bug report by clicking on the upload button as shown in the screenshot below or via drag and drop.
2019_12_04_upload_icon_developer_blender_org.png

I noticed in the video that Mesh has the Subdivision modifier. Is it also slow without this modifier? Does the `GPU Subdivision` option in the preferences make any difference? Please open Blender's installation directory and double click on the `blender_debug_gpu.cmd`. This will start Blender in debug mode and create log files. Try to reproduce the error again. Once you close Blender manually the Windows Explorer should open and show you up to two files, a debug log and the system information. Add them to your bug report by clicking on the upload button as shown in the screenshot below or via drag and drop. ![2019_12_04_upload_icon_developer_blender_org.png](https://archive.blender.org/developer/F8190038/2019_12_04_upload_icon_developer_blender_org.png)
Author

Lags both with and without the Subdivision modifier.
GPU Subdivision is enabled. I am currently on an Arch Linux computer. How do I start debug mode in Linux?

Lags both with and without the Subdivision modifier. GPU Subdivision is enabled. I am currently on an Arch Linux computer. How do I start debug mode in Linux?

Please run ./blender --debug-gpu > gpu_debug_log.txt from the command line, trigger the bug, and attach the resulting file here.
https://docs.blender.org/manual/en/latest/advanced/command_line/launch/linux.html

Also provide the system-info.txt generated in {nav Help > Save System Info}.

Please run `./blender --debug-gpu > gpu_debug_log.txt` from the command line, trigger the bug, and attach the resulting file here. https://docs.blender.org/manual/en/latest/advanced/command_line/launch/linux.html Also provide the `system-info.txt` generated in {nav Help > Save System Info}.
Author
I did everything like you said. [Peek 2022-10-21 20-03.mp4](https://archive.blender.org/developer/F13741809/Peek_2022-10-21_20-03.mp4) [system-info.txt](https://archive.blender.org/developer/F13741801/system-info.txt) [gpu_debug_log.txt](https://archive.blender.org/developer/F13741802/gpu_debug_log.txt)

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

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

I can see some messages that might be related. But I'm not sure if it's enough to reveal where the problem is:

WARN (gpu.debug):  : Buffer performance warning: Buffer object UBO-OVERLAY (bound to NONE, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
WARN (gpu.debug):  : Buffer performance warning: Buffer object UBO-drw_res (bound to NONE, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
WARN (gpu.debug):  : Buffer performance warning: Buffer object UBO-Materia (bound to GL_SHADER_STORAGE_BUFFER (4), usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
WARN (gpu.debug):  : Buffer performance warning: Buffer object UBO-Materia (bound to GL_SHADER_STORAGE_BUFFER (1), usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
WARN (gpu.debug):  : Buffer performance warning: Buffer object UBO-Materia (bound to GL_ELEMENT_ARRAY_BUFFER_ARB, GL_SHADER_STORAGE_BUFFER, and GL_SHADER_STORAGE_BUFFER (3), usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
WARN (gpu.debug):  : Buffer performance warning: Buffer object UBO-updateG (bound to NONE, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
WARN (gpu.debug):  : Buffer performance warning: Buffer object UBO-updateG (bound to NONE, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
WARN (gpu.debug):  : Buffer performance warning: Buffer object UBO-Materia (bound to NONE, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
WARN (gpu.debug):  : Buffer performance warning: Buffer object UBO-renderp (bound to NONE, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
WARN (gpu.debug):  : Buffer performance warning: Buffer object UBO-EEVEE_l (bound to NONE, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
WARN (gpu.debug):  : Buffer performance warning: Buffer object UBO-evShado (bound to GL_SHADER_STORAGE_BUFFER (2), usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
WARN (gpu.debug):  : Buffer performance warning: Buffer object UBO-eevee_v (bound to NONE, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.

WARN (gpu.debug): Eevee > Shading > psl->material_ps : Program/shader state performance warning: Fragment shader in program 366 is being recompiled based on GL state.
WARN (gpu.debug): Eevee > Shading > psl->material_ps : Program/shader state performance warning: Vertex shader in program 366 is being recompiled based on GL state.

WARN (gpu.debug): SPACE_FILE > ARegion : Program/shader state performance warning: Vertex shader in program 7 is being recompiled based on GL state.

WARN (gpu.debug):  : Buffer performance warning: Buffer object UBO-drw_res (bound to NONE, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
WARN (gpu.debug):  : Buffer performance warning: Buffer object UBO-EEVEE_l (bound to NONE, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
WARN (gpu.debug):  : Buffer performance warning: Buffer object UBO-evShado (bound to GL_SHADER_STORAGE_BUFFER (2), usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
WARN (gpu.debug):  : Buffer performance warning: Buffer object UBO-eevee_v (bound to NONE, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
WARN (gpu.debug):  : Buffer performance warning: Buffer object UBO-Materia (bound to GL_SHADER_STORAGE_BUFFER (4), usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
WARN (gpu.debug):  : Buffer performance warning: Buffer object UBO-Materia (bound to GL_SHADER_STORAGE_BUFFER (1), usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
WARN (gpu.debug):  : Buffer performance warning: Buffer object UBO-renderp (bound to NONE, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
WARN (gpu.debug):  : Buffer performance warning: Buffer object UBO-Materia (bound to NONE, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
WARN (gpu.debug):  : Buffer performance warning: Buffer object UBO-updateG (bound to NONE, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.
WARN (gpu.debug):  : Buffer performance warning: Buffer object UBO-updateG (bound to NONE, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory.

WARN (gpu.debug): Eevee > Shading > psl->material_ps : Program/shader state performance warning: Fragment shader in program 372 is being recompiled based on GL state.
WARN (gpu.debug): Eevee > Shading > psl->material_ps : Program/shader state performance warning: Vertex shader in program 372 is being recompiled based on GL state.

WARN (gpu.debug): Overlay > psl->background_ps : Program/shader state performance warning: Vertex shader in program 149 is being recompiled based on GL state.

WARN (gpu.debug): Workbench : Program/shader state performance warning: Vertex shader in program 391 is being recompiled based on GL state.

It might take a developer with similar hardware to test.

I'm confirming the issue anyway. for the #eevee_viewport team to take a look at.

In the meantime, please double-check if the drivers are up to date.
To upgrade to the latest driver, see here for more information: https://docs.blender.org/manual/en/dev/troubleshooting/gpu/index.html

I can see some messages that might be related. But I'm not sure if it's enough to reveal where the problem is: ``` WARN (gpu.debug): : Buffer performance warning: Buffer object UBO-OVERLAY (bound to NONE, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory. WARN (gpu.debug): : Buffer performance warning: Buffer object UBO-drw_res (bound to NONE, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory. WARN (gpu.debug): : Buffer performance warning: Buffer object UBO-Materia (bound to GL_SHADER_STORAGE_BUFFER (4), usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory. WARN (gpu.debug): : Buffer performance warning: Buffer object UBO-Materia (bound to GL_SHADER_STORAGE_BUFFER (1), usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory. WARN (gpu.debug): : Buffer performance warning: Buffer object UBO-Materia (bound to GL_ELEMENT_ARRAY_BUFFER_ARB, GL_SHADER_STORAGE_BUFFER, and GL_SHADER_STORAGE_BUFFER (3), usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory. WARN (gpu.debug): : Buffer performance warning: Buffer object UBO-updateG (bound to NONE, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory. WARN (gpu.debug): : Buffer performance warning: Buffer object UBO-updateG (bound to NONE, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory. WARN (gpu.debug): : Buffer performance warning: Buffer object UBO-Materia (bound to NONE, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory. WARN (gpu.debug): : Buffer performance warning: Buffer object UBO-renderp (bound to NONE, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory. WARN (gpu.debug): : Buffer performance warning: Buffer object UBO-EEVEE_l (bound to NONE, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory. WARN (gpu.debug): : Buffer performance warning: Buffer object UBO-evShado (bound to GL_SHADER_STORAGE_BUFFER (2), usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory. WARN (gpu.debug): : Buffer performance warning: Buffer object UBO-eevee_v (bound to NONE, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory. WARN (gpu.debug): Eevee > Shading > psl->material_ps : Program/shader state performance warning: Fragment shader in program 366 is being recompiled based on GL state. WARN (gpu.debug): Eevee > Shading > psl->material_ps : Program/shader state performance warning: Vertex shader in program 366 is being recompiled based on GL state. WARN (gpu.debug): SPACE_FILE > ARegion : Program/shader state performance warning: Vertex shader in program 7 is being recompiled based on GL state. WARN (gpu.debug): : Buffer performance warning: Buffer object UBO-drw_res (bound to NONE, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory. WARN (gpu.debug): : Buffer performance warning: Buffer object UBO-EEVEE_l (bound to NONE, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory. WARN (gpu.debug): : Buffer performance warning: Buffer object UBO-evShado (bound to GL_SHADER_STORAGE_BUFFER (2), usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory. WARN (gpu.debug): : Buffer performance warning: Buffer object UBO-eevee_v (bound to NONE, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory. WARN (gpu.debug): : Buffer performance warning: Buffer object UBO-Materia (bound to GL_SHADER_STORAGE_BUFFER (4), usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory. WARN (gpu.debug): : Buffer performance warning: Buffer object UBO-Materia (bound to GL_SHADER_STORAGE_BUFFER (1), usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory. WARN (gpu.debug): : Buffer performance warning: Buffer object UBO-renderp (bound to NONE, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory. WARN (gpu.debug): : Buffer performance warning: Buffer object UBO-Materia (bound to NONE, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory. WARN (gpu.debug): : Buffer performance warning: Buffer object UBO-updateG (bound to NONE, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory. WARN (gpu.debug): : Buffer performance warning: Buffer object UBO-updateG (bound to NONE, usage hint is GL_DYNAMIC_DRAW) is being copied/moved from VIDEO memory to HOST memory. WARN (gpu.debug): Eevee > Shading > psl->material_ps : Program/shader state performance warning: Fragment shader in program 372 is being recompiled based on GL state. WARN (gpu.debug): Eevee > Shading > psl->material_ps : Program/shader state performance warning: Vertex shader in program 372 is being recompiled based on GL state. WARN (gpu.debug): Overlay > psl->background_ps : Program/shader state performance warning: Vertex shader in program 149 is being recompiled based on GL state. WARN (gpu.debug): Workbench : Program/shader state performance warning: Vertex shader in program 391 is being recompiled based on GL state. ``` It might take a developer with similar hardware to test. I'm confirming the issue anyway. for the #eevee_viewport team to take a look at. In the meantime, please double-check if the drivers are up to date. To upgrade to the latest driver, see here for more information: https://docs.blender.org/manual/en/dev/troubleshooting/gpu/index.html
Author

I have all the drivers and all the applications are the latest and freshest. I use Arch Linux and here everything is updated with one command: paru -Syu.

I have all the drivers and all the applications are the latest and freshest. I use Arch Linux and here everything is updated with one command: paru -Syu.
Member

Added subscriber: @Jeroen-Bakker

Added subscriber: @Jeroen-Bakker
Member

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

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

It is hard to know what is going on, so I need more info. I doubt that the warnings are that harmful.

  • Seems to be running on an not official build of blender. Not sure if this is the reason. Texture projection painting is a CPU bound task could be slow when compiled in debug mode. Could you try with an official blender build?
  • Is the bottleneck on the CPU, GPU or the transport between these two? Looking at the video I think it is a CPU bottleneck.
  • We have not been able to reproduce this slow-down, might be a local issue. Are other processes influencing the performance of the system? Almost thinking is the system configured correctly or is there a latency issue on between RAM, CPU and GPU.
  • Can you tell us what kind of system you're using (CPU, RAM)
  • Is the system out of memory and just swapping?

In order to continue we need a reproducable report. A hint would be to use some profiling tools to find out where the slowdown is. Are you familiar with tools like hotspot, perhaps you can provide us with a hotspot recording to detect where the bottleneck is. (https://github.com/KDAB/hotspot, but most distros provide it via its package manager)

It is hard to know what is going on, so I need more info. I doubt that the warnings are that harmful. * Seems to be running on an not official build of blender. Not sure if this is the reason. Texture projection painting is a CPU bound task could be slow when compiled in debug mode. Could you try with an official blender build? * Is the bottleneck on the CPU, GPU or the transport between these two? Looking at the video I think it is a CPU bottleneck. * We have not been able to reproduce this slow-down, might be a local issue. Are other processes influencing the performance of the system? Almost thinking is the system configured correctly or is there a latency issue on between RAM, CPU and GPU. * Can you tell us what kind of system you're using (CPU, RAM) * Is the system out of memory and just swapping? In order to continue we need a reproducable report. A hint would be to use some profiling tools to find out where the slowdown is. Are you familiar with tools like hotspot, perhaps you can provide us with a hotspot recording to detect where the bottleneck is. (https://github.com/KDAB/hotspot, but most distros provide it via its package manager)

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

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

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed.

Thanks for the report. If the problem persists please open a new report with the required information.

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed. Thanks for the report. If the problem persists please open a new report with the required information.
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
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#101966
No description provided.