diff options
author | Brecht Van Lommel <brecht@blender.org> | 2021-10-19 12:37:28 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-10-19 12:39:11 +0300 |
commit | abc3128011b484c270701211b40831d11c8ac44b (patch) | |
tree | 3b2658bb98f322d98c7425cdda728b3f4c6b952b /source/blender/compositor | |
parent | d6b54068d48da9975a997c4fcf2992c0418471eb (diff) |
Fix T85779: Cycles not using all threads when using OpenImageDenoise
The thread affinity setting in OIDN can break multithreading on some CPUs.
While this leads to somewhat worse performance on CPUs that do work correctly,
it's better than having some CPUs use only half the cores.
Diffstat (limited to 'source/blender/compositor')
-rw-r--r-- | source/blender/compositor/operations/COM_DenoiseOperation.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/compositor/operations/COM_DenoiseOperation.cc b/source/blender/compositor/operations/COM_DenoiseOperation.cc index 53417112974..9b9670c6f06 100644 --- a/source/blender/compositor/operations/COM_DenoiseOperation.cc +++ b/source/blender/compositor/operations/COM_DenoiseOperation.cc @@ -64,6 +64,7 @@ class DenoiseFilter { BLI_mutex_lock(&oidn_lock); device = oidn::newDevice(); + device.set("setAffinity", false); device.commit(); filter = device.newFilter("RT"); initialized_ = true; |