Cycles OpenCL: Proposal Select better base features to reduce recompilation #62252
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#62252
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?
Currently there are many features that will trigger a recompilation. This design task will reevaluate the current setup and come with a better approach.
Current situation
NODE_GROUP_LEVEL_*
: currently all the scenes of our benchmark always usesNODE_GROUP_LEVEL_MAX
during foreground and background rendering. As these are always selected we could remove this, or come with a better set for eachtNODE_GROUP_LEVEL_?
NODE_FEATURE_*
: There are some compile directives and node features that are linked. likeNODE_FEATURE_VOLUME
anduse_volume
.NODE_FEATURE_HAIR
anduse_hair
.Experiments
We have done several experiments by enabling different features by default. We used the BMW, Classroom, Pavilion, Fishy cat and Barbershop scenes for benchmarking.
The reference hardware is AMD Ryzen 1700 with 16GB ram and a Vega Frontier Edition.
We tested these configurations during background rendering.
Subsurface and volumes did not increased the render time noticeable, but most of the compilation time is concentrates around those two features. Enable other features will increase the compilation times for volume and subsurface.
Proposal
use_transparent
by defaultuse_shadow_tricks
by defaultuse_transparent
by defaultuse_principled
by defaultuse_denoising
by defaultUser experience
With this new setup the kernels will be less recompiled when building a scene (or doing the lighting). Kernels will still need to be compiled when
NODE_BEVEL
andNODE_AMBIENT_OCCLUSION
)I would only suggest to enable these defaults in foreground and background rendering. The selected features are not noticeable in compilation time and rendertime.
Added subscriber: @Jeroen-Bakker
I would propose to implement this as a last step. In the upcoming month I want to reorganize the kernels and that might influence the choices made here. I don't think that the proposed choices stated above will be effected, only we might want to add subsurface or volume when we are able to get their compile times better.
Added subscriber: @brecht
Interesting stats. I agree we can enable the proposed features always.
There is some possibility to optimize some of the more expensive features individually so that maybe they can become part of the default too, but we'll have to see if there is enough time.
Added subscriber: @nokipaike
This comment was removed by @nokipaike
@nokipaike, please stay on topic.
@brecht
I apologize, I thought they were related and that they could be good insights from a user perspective that could also be useful via development to do "the possibility of excluding individual objects or individual functions not strictly necessary" from the rendering.
Closed as duplicate of #61751
Changed status from 'Duplicate' to: 'Open'
Changed status from 'Open' to: 'Resolved'