Cycles: Allow to disable OIDN on GPU on per-scene basis. #117874

Merged
Brecht Van Lommel merged 2 commits from Sirgienko/blender:ui_oidn_allow_gpu_checkbox into main 2024-02-06 17:46:30 +01:00

No response

_No response_
Nikita Sirgienko added 1 commit 2024-02-06 01:28:08 +01:00
Nikita Sirgienko requested review from Brecht Van Lommel 2024-02-06 01:29:06 +01:00
Nikita Sirgienko added the
Module
Render & Cycles
label 2024-02-06 01:29:13 +01:00
Nikita Sirgienko added this to the 4.1 milestone 2024-02-06 01:29:19 +01:00
Nikita Sirgienko added this to the Render & Cycles project 2024-02-06 01:29:23 +01:00
Author
Member
+ @Stefan_Werner @xavierh for awareness.
Nikita Sirgienko reviewed 2024-02-06 01:32:12 +01:00
@ -424,2 +424,4 @@
PyTuple_SET_ITEM(device_tuple, 3, PyBool_FromLong(device.has_peer_memory));
PyTuple_SET_ITEM(device_tuple, 4, PyBool_FromLong(device.use_hardware_raytracing));
PyTuple_SET_ITEM(
device_tuple, 5, PyBool_FromLong(device.denoisers & DENOISER_OPENIMAGEDENOISE));
Author
Member

Duplication of the changes from #117734 - won't be needed after merging #117734 into the master.

Duplication of the changes from https://projects.blender.org/blender/blender/pulls/117734 - won't be needed after merging https://projects.blender.org/blender/blender/pulls/117734 into the master.
Nikita Sirgienko reviewed 2024-02-06 01:33:41 +01:00
@ -234,1 +245,4 @@
if effective_preview_denoiser == 'OPENIMAGEDENOISE':
row = col.row()
row.enabled = not use_cpu(context) and has_oidn_gpu_devices(context)
row.prop(cscene, "preview_denoising_oidn_allow_gpu", text="OpenImageDenoise on GPU")
Author
Member

"OpenImageDenoise on GPU" is not exactly fully fitting in default panel width, likely worth to change the default value in order to fit the string fully, or use more short one.

"OpenImageDenoise on GPU" is not exactly fully fitting in default panel width, likely worth to change the default value in order to fit the string fully, or use more short one.
Author
Member

UI Example - OIDN device is presented and enabled, checkbox active and can be toggled:
image
image
UI Example - no OIDN device is presented and enabled, checkbox is inactive:
image
image

UI Example - OIDN device is presented and enabled, checkbox active and can be toggled: ![image](/attachments/23c11e39-c261-41cb-99dd-c29f49f9c632) ![image](/attachments/260a27ed-042f-451e-ad48-d6b87de99e45) UI Example - no OIDN device is presented and enabled, checkbox is inactive: ![image](/attachments/15f9ec16-0a39-40e4-a7b2-c390dd07fdc3) ![image](/attachments/7556afc5-8a8d-4bfc-a049-016639834424)
Brecht Van Lommel added 1 commit 2024-02-06 13:41:30 +01:00
Brecht Van Lommel approved these changes 2024-02-06 13:45:14 +01:00
Brecht Van Lommel left a comment
Owner

I still prefer this approach, but with slightly different naming and layout that I've changed. What may happen in the future is that we remove the OptiX option entirely.

I also prefer just this option and nothing in the preferences.

I still prefer this approach, but with slightly different naming and layout that I've changed. What may happen in the future is that we remove the OptiX option entirely. I also prefer just this option and nothing in the preferences.
Author
Member

@brecht , What about scenario with Render on CPU and OIDN running on GPU? Currently, UI/UX do not support this, in opposite to the Optix Denoiser, where it is supported (regardless to the Cycles settings even). What your thoughts on this - should we just disallow this with 4.1 for a time being, and then figure out some way to allow users to set such config for 4.2+? Or it could be addressed somehow even for 4.1?

@brecht , What about scenario with Render on CPU and OIDN running on GPU? Currently, UI/UX do not support this, in opposite to the Optix Denoiser, where it is supported (regardless to the Cycles settings even). What your thoughts on this - should we just disallow this with 4.1 for a time being, and then figure out some way to allow users to set such config for 4.2+? Or it could be addressed somehow even for 4.1?

@Sirgienko for 4.1, we could enable GPU OIDN by default for viewport renders, and always leave it off for final renders. And then users can disable it for viewport renders with this new option.

If you want to make a PR for that, it would be appreciated.

@Sirgienko for 4.1, we could enable GPU OIDN by default for viewport renders, and always leave it off for final renders. And then users can disable it for viewport renders with this new option. If you want to make a PR for that, it would be appreciated.
Brecht Van Lommel merged commit bc886857f3 into main 2024-02-06 17:46:30 +01:00
Brecht Van Lommel deleted branch ui_oidn_allow_gpu_checkbox 2024-02-06 17:46:32 +01:00
Sign in to join this conversation.
No reviewers
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 Assignees
2 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#117874
No description provided.