Cycles: Allow variable render tile size for mixed gpu/cpu #56123

Closed
opened 2018-07-27 22:13:55 +02:00 by Jonathan Dunlap · 18 comments

Blender now has the ability to render using both CPU and GPU in a single pass (https://developer.blender.org/D2873). However, cpus desire smaller tile sizes (32x32) and gpus prefer larger (256x256). On several machines I've tested, it's often the case that the mixed mode of rendering yields to no benefit to using either pure cpu or gpu (on the same machine) .I'd like to propose a major optimization where the tile size in a single render pass are different between cpu and gpu.

One method could be to divide the rendering area first into larger tiles (like 256x256) that would be optimal for the GPU to render each tile. However, tiles can become owned by the cpu renderer, which would subdivide these large blocks into subdivisions (32x32 or smaller) to process.

Blender now has the ability to render using both CPU and GPU in a single pass (https://developer.blender.org/D2873). However, cpus desire smaller tile sizes (32x32) and gpus prefer larger (256x256). On several machines I've tested, it's often the case that the mixed mode of rendering yields to no benefit to using either pure cpu or gpu (on the same machine) .I'd like to propose a major optimization where the tile size in a single render pass are different between cpu and gpu. One method could be to divide the rendering area first into larger tiles (like 256x256) that would be optimal for the GPU to render each tile. However, tiles can become owned by the cpu renderer, which would subdivide these large blocks into subdivisions (32x32 or smaller) to process.

Added subscriber: @JonathanDunlap

Added subscriber: @JonathanDunlap

Added subscribers: @juang3d, @brecht

Added subscribers: @juang3d, @brecht

cc @brecht @juang3d for thoughts

cc @brecht @juang3d for thoughts
Member

Added subscriber: @LukasStockner

Added subscriber: @LukasStockner
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Lukas Stockner self-assigned this 2018-07-27 22:33:18 +02:00
Member

I've looked into this and it's definitely doable. The basic changes are easy, but there are two tricky parts:

  • The render engine API expects uniform tile sizes, that would need to be changed,
  • For denoising a uniform grid is needed. However, it wouldn't be too hard to merge smaller tiles back into large tiles before queueing them for denoising.

That being said, the bugtracker is not the right place for feature requests, so I'll be closing this.

I've looked into this and it's definitely doable. The basic changes are easy, but there are two tricky parts: - The render engine API expects uniform tile sizes, that would need to be changed, - For denoising a uniform grid is needed. However, it wouldn't be too hard to merge smaller tiles back into large tiles before queueing them for denoising. That being said, the bugtracker is not the right place for feature requests, so I'll be closing this.
Member

Added subscriber: @LazyDodo

Added subscriber: @LazyDodo
Member

Also the whole 'gpu likes larger tiles' no longer holds true since 6da6f8d

Also the whole 'gpu likes larger tiles' no longer holds true since 6da6f8d

This comment was removed by @JonathanDunlap

*This comment was removed by @JonathanDunlap*

Added subscriber: @Lukas-132

Added subscriber: @Lukas-132

@Lukas-132 Stockner (lukasstockner97) thanks for the info, where's the right place for this?

@Lukas-132 Stockner (lukasstockner97) thanks for the info, where's the right place for this?
Member

The default paste for a feature requests has some links

Hi, while we love to hear these ideas, this is not the right place for them. This website is mainly used to track bug reports and not feature requests. But luckly, there are some other nice solutions you can take, so please use one of the other >forms of communication listed below:

https://rightclickselect.com/
Fun board mailing list: https://lists.blender.org/mailman/listinfo/bf-funboard

The default paste for a feature requests has some links >Hi, while we love to hear these ideas, this is not the right place for them. This website is mainly used to track bug reports and not feature requests. But luckly, there are some other nice solutions you can take, so please use one of the other >forms of communication listed below: > >https://rightclickselect.com/ >Fun board mailing list: https://lists.blender.org/mailman/listinfo/bf-funboard

Added subscriber: @derekbarker

Added subscriber: @derekbarker

This comment was removed by @derekbarker

*This comment was removed by @derekbarker*

It is impossible to stress how important this is. Most people dont understand enabling CPU+GPU uses nearly twice the power to render 3 seconds faster. If this is not optimized blender is solely responsible for global warming xD

In #56123#522465, @LazyDodo wrote:
Also the whole 'gpu likes larger tiles' no longer holds true since 6da6f8d

That is absolutely incorrect. I use blender every day of my life on production scenes and never is a tile size below 196x196 faster than 256x256

When this was initially committed you could see a huge improvement especially at 32x32 it was even faster than rendering at 256x256

Now that is not true at all 256x256 is once again optimal for some reason

It is impossible to stress how important this is. Most people dont understand enabling CPU+GPU uses nearly twice the power to render 3 seconds faster. If this is not optimized blender is solely responsible for global warming xD > In #56123#522465, @LazyDodo wrote: > Also the whole 'gpu likes larger tiles' no longer holds true since 6da6f8d That is absolutely incorrect. I use blender every day of my life on production scenes and never is a tile size below 196x196 faster than 256x256 When this was initially committed you could see a huge improvement especially at 32x32 it was even faster than rendering at 256x256 Now that is not true at all 256x256 is once again optimal for some reason

Yes, I noticed it too lately, there is not much of a difference, at least not like before.

Maybe some regression?

Yes, I noticed it too lately, there is not much of a difference, at least not like before. Maybe some regression?

Added subscriber: @hyperchango

Added subscriber: @hyperchango

As of 2.83.3, there is still a single tile size setting for the whole render process, and GPU preference for larger tiles still holds true.

Is the Blender team considering this feature for an upcoming release?

As of 2.83.3, there is still a single tile size setting for the whole render process, and GPU preference for larger tiles still holds true. Is the Blender team considering this feature for an upcoming release?
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
6 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#56123
No description provided.