Build: upgrade OIDN to 2.3.0-beta #121359

Merged
Brecht Van Lommel merged 2 commits from aafra/blender:oidn2.3.0-beta into main 2024-05-06 14:15:09 +02:00
Contributor

This updates OIDN to 2.3.0-beta. The final version is planned to be released in time for Blender 4.2 Beta. The most relevant changes for Blender:

  1. Much higher quality when denoising with accurate prefiltering in high quality mode, but at the cost of lower performance (use balanced quality mode to revert to previous high quality mode)
  2. Added new fast quality mode for 1.5-2x higher performance viewport denoising
  3. Lazy device module loading to avoid potential stability issues caused by drivers of unused devices
  4. Release CUDA primary context as soon as the OIDN device gets destroyed to prevent potential memory leaks

To enable 2 and 3, code changes are needed in Blender. PRs will be submitted very soon. Since these changes will require OIDN 2.3, the library binaries will need to be updated first.

Ref #118455

This updates OIDN to 2.3.0-beta. The final version is planned to be released in time for Blender 4.2 Beta. The most relevant changes for Blender: 1. Much higher quality when denoising with accurate prefiltering in *high* quality mode, but at the cost of lower performance (use *balanced* quality mode to revert to previous *high* quality mode) 2. Added new *fast* quality mode for 1.5-2x higher performance viewport denoising 3. Lazy device module loading to avoid potential stability issues caused by drivers of unused devices 4. Release CUDA primary context as soon as the OIDN device gets destroyed to prevent potential memory leaks To enable 2 and 3, code changes are needed in Blender. PRs will be submitted very soon. Since these changes will require OIDN 2.3, the library binaries will need to be updated first. Ref #118455
Attila Áfra added 1 commit 2024-05-02 18:45:46 +02:00
Attila Áfra requested review from Brecht Van Lommel 2024-05-02 18:46:24 +02:00
FYI @ideasman42 @LazyDodo @farsthary @mont29

Note to self: I may need to temporarily disable the denoising tests if this upgrade changes the results.

Note to self: I may need to temporarily disable the denoising tests if this upgrade changes the results.
Author
Contributor

It indeed changes some of the results.

It indeed changes some of the results.
Bastien Montagne added this to the 4.2 LTS milestone 2024-05-03 10:42:58 +02:00
Brecht Van Lommel added 1 commit 2024-05-06 14:10:50 +02:00
Brecht Van Lommel approved these changes 2024-05-06 14:10:51 +02:00
Brecht Van Lommel merged commit 205b909669 into main 2024-05-06 14:15:09 +02:00
Brecht Van Lommel deleted branch oidn2.3.0-beta 2024-05-06 14:15:12 +02:00

The code changes for 2 and 3 could be done already with an #if version check. Generally we try to keep Blender building with somewhat older and newer versions of library dependencies to make things easier for Linux distributions.

The code changes for 2 and 3 could be done already with an #if version check. Generally we try to keep Blender building with somewhat older and newer versions of library dependencies to make things easier for Linux distributions.
Author
Contributor

The code changes for #2 are simple and already done but for #3 it's a lot more work because the current messy solution of matching OIDN devices by PCI address must be also maintained. I was hoping that we wouldn't need to maintain both solutions at the same time. So keeping backward compatibility for #3 is required as well?

The code changes for #2 are simple and already done but for #3 it's a lot more work because the current messy solution of matching OIDN devices by PCI address must be also maintained. I was hoping that we wouldn't need to maintain both solutions at the same time. So keeping backward compatibility for #3 is required as well?

For landing the libs it would be convenient if we could have some temporary #ifdefs, even if it's ugly. And then we remove them soon after. I don't mind doing the work if you have a PR with the changes.

For landing the libs it would be convenient if we could have some temporary #ifdefs, even if it's ugly. And then we remove them soon after. I don't mind doing the work if you have a PR with the changes.
Author
Contributor

Thanks. I finished the PR and fixed compatibility with older OIDN versions anyway because there are a few tricky details: #121362

Thanks. I finished the PR and fixed compatibility with older OIDN versions anyway because there are a few tricky details: https://projects.blender.org/blender/blender/pulls/121362
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 project
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#121359
No description provided.