Page MenuHome

The "Texture Paint" mode is very slow.
Closed, ArchivedPublicBUG

Description

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.

Event Timeline

Germano Cavalcante (mano-wii) changed the task status from Needs Triage to Needs Information from User.Oct 21 2022, 5:20 PM

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.

Konstantin (imlegr) added a comment.EditedOct 21 2022, 5:35 PM

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 HelpSave System Info.

I did everything like you said.



Germano Cavalcante (mano-wii) changed the task status from Needs Information from User to Confirmed.Oct 21 2022, 7:42 PM
Germano Cavalcante (mano-wii) changed the subtype of this task from "Report" to "Bug".

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 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.

Jeroen Bakker (jbakker) changed the task status from Confirmed to Needs Information from User.Nov 7 2022, 9:58 AM

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)

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.