Blender 3.5 Beta - GPU slower than CPU (AMD) #104910

Closed
opened 2023-02-18 08:03:24 +01:00 by Gioxyer · 26 comments

System Information
Operating system: Windows 11 Home
Graphics card: Radeon Graphics VII (AMD Ryzen 5 5500u)

Blender Version
Broken: (example: 3.5, v35.efc2e5134f5d, beta, 2023-02-17, as found on the final render)
Worked: 3.4.1

Short description of error
When rendering different scenes cpu goes faster than gpu, in particular with different scenario scenes.

Exact steps for others to reproduce the error
Set CPU and render a scene, set AMD Ryzen Graphics as detected, test it and generally require 1-2 minutes more, same thing happen with CPU + GPU (AMD Radeon Graphics and Ryzen 5 5500u detected)

**System Information** Operating system: Windows 11 Home Graphics card: Radeon Graphics VII (AMD Ryzen 5 5500u) **Blender Version** Broken: (example: 3.5, v35.efc2e5134f5d, beta, 2023-02-17, as found on the final render) Worked: 3.4.1 **Short description of error** When rendering different scenes cpu goes faster than gpu, in particular with different scenario scenes. **Exact steps for others to reproduce the error** Set CPU and render a scene, set AMD Ryzen Graphics as detected, test it and generally require 1-2 minutes more, same thing happen with CPU + GPU (AMD Radeon Graphics and Ryzen 5 5500u detected)
Gioxyer added the
Priority
Normal
Status
Needs Triage
Type
Report
labels 2023-02-18 08:03:25 +01:00
Member

Hi, thanks for the report. Is this a regression? I mean time taken by GPU for rendering in 3.4 is less compared to 3.5?
Can you share system info file?: Help > Save System Info

Hi, thanks for the report. Is this a regression? I mean time taken by GPU for rendering in 3.4 is less compared to 3.5? Can you share system info file?: `Help > Save System Info`
Pratik Borhade added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-02-20 12:40:26 +01:00
Author

Thanks for your answer, exactly I tried but the problem persist. I upload the file require in txt format.

Thanks for your answer, exactly I tried but the problem persist. I upload the file require in txt format.
Member

Thanks, Does this happen for particular .blend file?

time taken by GPU for rendering in 3.4 is less compared to 3.5?

Your answer on this question is still not clear to me. I'll forward this to devs if it's a regression.

Thanks, Does this happen for particular .blend file? > time taken by GPU for rendering in 3.4 is less compared to 3.5? Your answer on this question is still not clear to me. I'll forward this to devs if it's a regression.
Author

Yes, sorry if I was not clear, it is a regression from the previous version

Yes, sorry if I was not clear, it is a regression from the previous version
Member

Thanks. Any improvements with newer GPU drivers (Adrenalin 23.2.1 (WHQL))?: https://www.amd.com/en/support/graphics/amd-radeon-2nd-generation-vega/amd-radeon-2nd-generation-vega/amd-radeon-vii

Thanks. Any improvements with newer GPU drivers (Adrenalin 23.2.1 (WHQL))?: https://www.amd.com/en/support/graphics/amd-radeon-2nd-generation-vega/amd-radeon-2nd-generation-vega/amd-radeon-vii
Author

I upgrade from Adrenalin 22.11.2 Recommended (WHQL) to Adrenalin 23.2.1 (WHQL)

Result :

CPU : 02:24:77 (02:54:76 old version)

GPU : 03:27:47 (04:19:47 old version)

CPU + GPU : 03:38:24 (04:01:66 old version)

Thank in advance and thanks for the tip of upgradeIn particular GPU seems faster, cpu is around 1 minute faster compare to GPU.

Do you know any settings that can improve GPU performance and make faster than CPU?

I upgrade from Adrenalin 22.11.2 Recommended (WHQL) to Adrenalin 23.2.1 (WHQL) Result : CPU : 02:24:77 (02:54:76 old version) GPU : 03:27:47 (04:19:47 old version) CPU + GPU : 03:38:24 (04:01:66 old version) Thank in advance and thanks for the tip of upgradeIn particular GPU seems faster, cpu is around 1 minute faster compare to GPU. Do you know any settings that can improve GPU performance and make faster than CPU?
Author

I link below the upgraded version of system info

I link below the upgraded version of system info
Member

hi, and how long it takes to render same scene in 3.4 (CPU, GPU, CPU+GPU~)?

hi, and how long it takes to render same scene in 3.4 (CPU, GPU, ~~CPU+GPU~~~)?
Author

Around 2 mintutes

Around 2 mintutes
Pratik Borhade added
Status
Needs Triage
and removed
Status
Needs Information from User
labels 2023-02-21 07:16:35 +01:00
Member

Does this happen for particular .blend file?

@Gioxyer hi, any updates on this?
Can you share .blend file you're using?

> Does this happen for particular .blend file? @Gioxyer hi, any updates on this? Can you share .blend file you're using?
Pratik Borhade added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-02-23 04:40:59 +01:00
Author

Hi, here some upgraded test with last version of today c760248fc5aa,daily section of Blender website, Blender 3.5 Beta.

Here the screenshot of the result and the file (download also BlenderKit Add-On with last version for materials).

Thanks in advance,
Gioxyer

Hi, here some upgraded test with last version of today c760248fc5aa,daily section of Blender website, Blender 3.5 Beta. Here the screenshot of the result and the file (download also BlenderKit Add-On with last version for materials). Thanks in advance, Gioxyer
Author

I link also a video that show GPU usage compare to CPU when rendering the same scene with same settings, hope can help.

I link also a video that show GPU usage compare to CPU when rendering the same scene with same settings, hope can help.
Author

CPU + GPU usage

CPU + GPU usage
Member

Hi, ran your file in both versions. In 3.5, rendering with cycles-Optix took around 1 second more compared to 3.4 (But GPU rendering was quicker than CPU in both versions)

3.4 CPU 3.5 CPU 3.4 GPU 3.5 GPU
image image image image

Not sure if this is AMD specific.

Can you check with factory settings?: File > Defaults > Load Factory Settings

Hi, ran your file in both versions. In 3.5, rendering with cycles-Optix took around 1 second more compared to 3.4 (But GPU rendering was quicker than CPU in both versions) | 3.4 CPU | 3.5 CPU | 3.4 GPU | 3.5 GPU | | -------- | -------- | -------- | -------- | | ![image](/attachments/9740ebfb-db86-4dde-ad5d-9af5ba991e53) | ![image](/attachments/552a8e39-bf98-44e4-8a18-1f8bb1e75feb) | ![image](/attachments/7e68827f-716c-4211-a976-94b5fb63d5bb) | ![image](/attachments/f16be361-21b4-4c72-b0e9-2f6512890898) | Not sure if this is AMD specific. Can you check with factory settings?: `File > Defaults > Load Factory Settings`
Author

Thanks for testing, I've done it, after what I should do? Test again, I use today version now v35.f9f29eefc774 of Blender 3.5 Beta?

Thanks for testing, I've done it, after what I should do? Test again, I use today version now v35.f9f29eefc774 of Blender 3.5 Beta?
Member

Load factory settings then open your file again without closing the blender.

Load factory settings then open your file again without closing the blender.
Author

And after that I need to test it again?

And after that I need to test it again?
Author

Result with factory settings

Result with factory settings
Author

New test with today version v35.f9bcd8c7e8e2, Blender 3.5 Beta with new driver 23.2.2 (WHQL Recommended), hope can help.

New test with today version v35.f9bcd8c7e8e2, Blender 3.5 Beta with new driver 23.2.2 (WHQL Recommended), hope can help.
Author

Any news or discover?

Any news or discover?
Member

@BrianSavery @Sayak-Biswas hi, can you check this? Any particular commit you suspect that could result in performance issue with Vega GPUs?

@BrianSavery @Sayak-Biswas hi, can you check this? Any particular commit you suspect that could result in performance issue with Vega GPUs?
Author

I see that it drops in performance as soon as it gets to the middle of the render (100/200 samples)

I see that it drops in performance as soon as it gets to the middle of the render (100/200 samples)

Hi. @Gioxyer I have a few questions. This thread is a bit all over to the place to be honest. What exactly is your question?

It sounds like you are asking "why is my GPU rendering slower than the CPU"? Is that correct? If this is the question, can you show the system preferences for which devices are selected in the preferences?

Secondly, you said this is a "regression". This would mean in a previous version version of Blender or the driver that the GPU was faster than the CPU, or significantly faster than before. Here's the numbers you mentioned above for upgrading GPU drivers:

CPU : 02:24:77 (02:54:76 old version)
GPU : 03:27:47 (04:19:47 old version)
CPU + GPU : 03:38:24 (04:01:66 old version)

I don't understand this.

  1. New drivers made the GPU rendering faster (opposite of regression)
  2. In both cases the CPU is faster than GPU. So not a huge change other than the GPU got much faster. (again not a regression)
  3. Very strange to me how a GPU driver update would make the CPU rendering faster! Is the "old version" you mention here the old driver or an old version of Blender?

The fact is that some CPUs are faster than certain GPUs. If this is just a thread commenting on that, I'm not sure its relevant to Blender development.

Hi. @Gioxyer I have a few questions. This thread is a bit all over to the place to be honest. What exactly is your question? **It sounds like you are asking "why is my GPU rendering slower than the CPU"? Is that correct?** If this is the question, can you show the system preferences for which devices are selected in the preferences? Secondly, you said this is a "regression". This would mean in a previous version version of Blender or the driver that the GPU was faster than the CPU, or significantly faster than before. Here's the numbers you mentioned above for upgrading GPU drivers: > CPU : 02:24:77 (02:54:76 old version) GPU : 03:27:47 (04:19:47 old version) CPU + GPU : 03:38:24 (04:01:66 old version) I don't understand this. 1. New drivers made the GPU rendering faster (opposite of regression) 2. In both cases the CPU is faster than GPU. So not a huge change other than the GPU got much faster. (again not a regression) 3. Very strange to me how a GPU driver update would make the CPU rendering faster! Is the "old version" you mention here the old driver or an old version of Blender? The fact is that some CPUs are faster than certain GPUs. If this is just a thread commenting on that, I'm not sure its relevant to Blender development.
Author

Hi Brian,
thanks for helping, basically 3.4.1 works better than the newer one. But as you said probably can be also that CPU has 6 core, 12 threads and gpu is around 7 I think. In general I notice that version of Blender use less vram compare to previous, but I know that can change because it's in beta now. I will test again when will become official to see more improvements. From the video that I sent to the other developer show the low usage of gpu in HIP.

Thanks in advance, sorry if the problem wasn't clear at the beginning.

Hi Brian, thanks for helping, basically 3.4.1 works better than the newer one. But as you said probably can be also that CPU has 6 core, 12 threads and gpu is around 7 I think. In general I notice that version of Blender use less vram compare to previous, but I know that can change because it's in beta now. I will test again when will become official to see more improvements. From the video that I sent to the other developer show the low usage of gpu in HIP. Thanks in advance, sorry if the problem wasn't clear at the beginning.

the low usage of gpu in HIP.

Ok. So this could be an area of optimization (keep in mind that's a matter of priority), but I think this issue can be closed IMO and that can be handled somewhere else @PratikPB2123

> the low usage of gpu in HIP. Ok. So this could be an area of optimization (keep in mind that's a matter of priority), but I think this issue can be closed IMO and that can be handled somewhere else @PratikPB2123
Member

@BrianSavery , according to reporter, GPU rendering in 3.4 took ~2 minutes whereas it takes ~3:30 minutes in 3.5 for the same scene. Based on that I suspect some changes in cycles code might have affected the performance. If this is the case then I think we should handle it on bug tracker.
I agree that discussion is quite less readable.
@Gioxyer , I'd say file a new report with necessary information (add blend file, show comparison of only "CPU", "GPU" rendering for both 3.4 and 3.5)

@BrianSavery , according to reporter, GPU rendering in 3.4 took ~2 minutes whereas it takes ~3:30 minutes in 3.5 for the same scene. Based on that I suspect some changes in cycles code might have affected the performance. If this is the case then I think we should handle it on bug tracker. I agree that discussion is quite less readable. @Gioxyer , I'd say file a new report with necessary information (add blend file, show comparison of only "CPU", "GPU" rendering for both 3.4 and 3.5)
Blender Bot added
Status
Archived
and removed
Status
Needs Info from Developers
labels 2023-03-03 03:55:43 +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
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#104910
No description provided.