Cycles CPU rendering performance regression 2.91 and later #83011
Labels
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
6 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#83011
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 457.30
Blender Version
Broken: version:
0f45cab862
037ce662e5
Worked: 2.90.1
Short description of error
I encountered some major rendering time downgrade from 2.90.1 to 2.91, resulting in the render time being doubled. With this scene included, the render time goes from 01:34 min (2.90) to 02:36 min (2.91).
With Optix denoiser enabled, the scene goes from02:11 min (2.90) to 04:30 min!! (2.91).
Exact steps for others to reproduce the error
With the file included, render the scene with 2.90 and then render the same scene with 2.91
render bug.blend
Added subscriber: @Slowwkidd
Added subscriber: @rjg
I'm checking this. The performance of CPU rendering seems to be slower which also impacts CPU+GPU rendering.
The performance of CPU+GPU rendering appears to be slower in 2.91 and more sensitive to the chosen tile size. The slowdown seems to come from the tiles rendered and denoised by the CPU. It seems significant enough to warrant further investigation.
Please keep in mind that the very first time rendering with CUDA in an new version takes longer because it has to prepare the render kernels. The render times do fluctuate quite a bit between different runs in the same version, so a proper comparison would have to profile several renders.
The following quick measurements have been made using a GeForce GTX 1080 Ti and i7-6850K.
Tile size: 63x64
Tile size: 256x256
NOTE: Blender 2.92 includes the tile stealing feature , which masks the performance regression when using CPU+GPU rendering.
@rjg Thanks for looking into it, hope it will eventually be resolved!
The time measurements I presented weren't the first render after starting the program, but the second/third, anyway I'll do some other tests just to be sure and write them down here.
Not sure if you need to know it, but my CPU is a i9-7900X.
Did some other tests with the same setup (64x64), same results, this time at the second/fourth render they actually increased from last time, from 2 to 10 seconds.
WITHOUT OPTIX
2nd render: 02:41:37
3rd render: 02:44:59
WITH OPTIX
4th render: 04:32:20
5th render: 04:32:61
Rendering time downgrade from 2.90 to 2.91to Cycles CPU rendering performance regression 2.91 and laterAdded subscribers: @Jeroen-Bakker, @brecht
I noticed that the project uses adaptive sampling, which may or may not be relevant to the issue at hand.
@brecht @Jeroen-Bakker Have you seen this performance issue during CPU rendering before? I'm a bit hesitant to confirm performance related issues, but this does seem like a regression.
Added subscriber: @Alaska
Just thought I'd add:
Rendering with CPU (Ryzen 9 3900X) with tile size 63x64 with OptiX disabled on Linux-5.8.0-3 Debian, these are my results:
These results aren't significantly different, like the results show by @rjg and @Slowwkidd, so I thought I may not be experiencing the issue because I'm running Linux. So I retested on Windows (
Windows-10-10.0.19041-SP0 64 Bits
) with the same CPU and same render settings and these are the results:Based on the small number of tests done so far, it seems the issue doesn't affect Zen 2 CPUs (at the least). Suggesting part of this "regression" may be caused by a change that negatively affects other CPU architectures. Both @rjg and @Slowwkidd are using "older" Intel CPUs. However, this is just speculation.
Added subscriber: @YAFU
I'm not sure if the following can influence render times according to Blender version (since it is also something related to CPU work).
I have noticed that apparently Righ s. and Left s meshes fall into some OpenSubdiv 2.8+ still present bug/limitation with Subdivision Surf. Modifier. When you open the .blend file it takes a long time to load. The same happens when you initialize the render. In both cases there is a single threaded process working at 100%. I think it is something related to what has already been described here:
https://developer.blender.org/T58191
If you remove the single face that "closes" the volume in the Righ s. and Left s. the problem I describe seems to go away. Here only Righ s. object in 2.79 .blend file
render bug_mod_2.79.blend
no problem with OpenSubdiv. You open the scene with Blender 2.9 and in Subdivision Surf. Modifier you set Quality to 3 and you will see the performance problem that I explain (it will even freeze blender for a while when you increase Quality setting).
Edit:
Intel i7-3770 here. Ryzen users also have the performance problem that I describe with OpenSubdiv, right?
This is even more evident with this for example:
https://developer.blender.org/T58191#945339
So my intervention in this report is because I'm not sure if OpenSubdiv performance in those cases may have varied a bit between those versions of Blender.
@YAFU Thanks for pointing out a problem related to subsurf, it's true that regardless of the blender version the file opening and render initializing were slow, but then why in 2.90 the same file renders faster? Might be as @Alaska suggested a regression due to specific CPU architectures?
Bug reports require as simple as possible .blend files, the intent here is not for Blender developers or triagers to analyze production scenes, we expect the reporter to make an effort to identify what specifically in the .blend file is causing the problem.
Remove as many objects, materials, modifiers, as possible, disable settings, set a low number of samples, and figure out what exactly is causing the issue.
Changed status from 'Needs Triage' to: 'Needs User Info'
Sorry for not diving a little bit deeper before, I think I actually found out: the regression in 2.91 regards renders with a large resolution.
Here's is a very simple scene:
Resolution size bug.blend
At 1000x1000 pixels, the scene renders both in 2.90 and 2.91 in around 1 second.
At 3000x3000 pixels, in 2.90 it renders in ~16 seconds, in 2.91 in ~48 seconds.
Important to note that the regression is present in CPU, GPU and CPU+GPU rendering, so it doesn't seem to be connected specifically to CPU issues.
That would be #82591 then.
Added subscriber: @lichtwerk
Is this the same as {#82591}?
Closed as duplicate of #82591
I didn't expect that this would have such an impact on a relatively small output resolution though. The 1754x2481 render of the example project is not nearly as gigantic as the case discussed in the #82591.
This comment was removed by @Slowwkidd