Maniphest T96583

Slow shape key updates with GPU Subdivision
Closed, Resolved

Assigned To
Mikhail Vigovskiy (Upliner)
Authored By
Mikhail Vigovskiy (Upliner)
Mar 18 2022, 6:07 AM
Tags
  • BF Blender
Subscribers
Germano Cavalcante (mano-wii)
Kévin Dietrich (kevindietrich)
Mikhail Vigovskiy (Upliner)
Philipp Oeser (lichtwerk)
Pratik Borhade (PratikPB2123)

Description

System Information
Operating system: Ubuntu 21.10
Graphics card: NVIDIA GeForce GTX 670

Blender Version
Broken: 3.1.0
Worked: 3.0.1

Short description of error
GPU subdivision works fast for pose updates, but it runs slower than CPU subdivision when changing shape key values

Exact steps for others to reproduce the error
In attached blend file try to change value of "charmorph_final" shape key. When GPU subdivision if off it works ok, but when it is on, it runs very slowly

Event Timeline

Mikhail Vigovskiy (Upliner) created this task.Mar 18 2022, 6:07 AM
Pratik Borhade (PratikPB2123) added a subscriber: Pratik Borhade (PratikPB2123).Mar 18 2022, 6:32 AM
Pratik Borhade (PratikPB2123) added a comment.Mar 18 2022, 6:44 AM

Thanks for the report. Compared both GPU subdiv on and off, I don't see any difference in shape key update.
Tested on 3.1 release

System Information
Operating system: Windows-10-10.0.19043-SP0 64 Bits
Graphics card: Intel(R) UHD Graphics 620 Intel 4.5.0 - Build 26.20.100.7323
Mikhail Vigovskiy (Upliner) added a comment.EditedMar 18 2022, 9:15 AM
In T96583#1325182, @Pratik Borhade (PratikPB2123) wrote:

Graphics card: Intel(R) UHD Graphics 620 Intel 4.5.0 - Build 26.20.100.7323```

Does Integrated Intel graphics support hardware subdivision? Is there any difference in any other cases (armature deform, edit mode)? For me, shape key update is slower with GPU subdivision, but in all other cases GPU performs faster.

Germano Cavalcante (mano-wii) added a subscriber: Germano Cavalcante (mano-wii).Mar 18 2022, 2:08 PM

It might be the same problem described in T96434: GPU subdivision: Bad performance with viewport statistics since shape keys is a kind of internal modifier.

Kévin Dietrich (kevindietrich) added a subscriber: Kévin Dietrich (kevindietrich).Mar 21 2022, 7:42 AM

I cannot reproduce the performance problem. Looking into a profile build, only the GPU code is executed, so it is not the same as T96434: GPU subdivision: Bad performance with viewport statistics. I may try on a different card, it might be because memory access on the GPU is not coherent enough.

Philipp Oeser (lichtwerk) changed the task status from Needs Triage to Needs Information from User.Mar 23 2022, 2:08 PM
Philipp Oeser (lichtwerk) added a subscriber: Philipp Oeser (lichtwerk).

Also cannot reproduce here (in fact, for me GPU subdiv is quite a bit faster

**System Information**
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 495.44
version: 3.1.0, branch: master, commit date: 2022-03-08 18:16, hash: `rBc77597cd0e15`

Not sure if this could also be influenced by the driver version? Are these up-to-date?
@Mikhail Vigovskiy (Upliner) : Please share your System Info (Help > Save System Info)

Mikhail Vigovskiy (Upliner) added a comment.Mar 29 2022, 7:11 PM

Not sure if this could also be influenced by the driver version? Are these up-to-date?
@Mikhail Vigovskiy (Upliner) : Please share your System Info (Help > Save System Info)

I currently use 470 drivers. OK, I can try to update them and see if it helps.
Attaching system info.

Mikhail Vigovskiy (Upliner) added a comment.EditedMar 29 2022, 7:40 PM

UPD: NVIDIA drivers newer than 470 don't work on my current system. Maybe they will work after updating Ubuntu to 22.04.

Philipp Oeser (lichtwerk) added a comment.Apr 26 2022, 8:51 AM
In T96583#1331747, @Mikhail Vigovskiy (Upliner) wrote:

UPD: NVIDIA drivers newer than 470 don't work on my current system. Maybe they will work after updating Ubuntu to 22.04.

was there any success upgrading?

Mikhail Vigovskiy (Upliner) added a comment.Apr 26 2022, 7:47 PM

No, Ubuntu version appeared to have nothing to do with this. It's just because of my old GPU. NVidia only provides for it 470 driver as production branch and 465 as new-feature branch. Should I try 465?

Mikhail Vigovskiy (Upliner) added a comment.EditedApr 26 2022, 8:16 PM
In T96583#1346612, @Philipp Oeser (lichtwerk) wrote:

was there any success upgrading?

I've tried it on another machine that has RTX 3050 GPU and uses 510 NVidia drivers. The problem happens there too. Here is new system-info file

Pratik Borhade (PratikPB2123) changed the task status from Needs Information from User to Needs Triage.May 11 2022, 9:20 AM
Pratik Borhade (PratikPB2123) changed the task status from Needs Triage to Needs Information from User.EditedAug 16 2022, 7:11 AM

@Mikhail Vigovskiy (Upliner) hi, any improvements on you side in latest 3.3 builds?: https://builder.blender.org/download/daily

I've tried it on another machine that has RTX 3050 GPU and uses 510 NVidia drivers

System-info file shows different GPU: AMD RENOIR (DRM 3.44.0, 5.17.1-3-MANJARO, LLVM 13.0.1)


Still not able to confirm the performance drop

**System Information**
Operating system: Windows-10-10.0.22000-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3050 Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.78
Mikhail Vigovskiy (Upliner) closed this task as Resolved.Aug 16 2022, 9:11 AM
Mikhail Vigovskiy (Upliner) claimed this task.

The problem seems to be fixed in Blender 3.2.2 so I think it can be closed.