diff options
author | Michael Jones <michael_p_jones@apple.com> | 2022-02-10 18:46:49 +0300 |
---|---|---|
committer | Michael Jones <michael_p_jones@apple.com> | 2022-02-10 20:32:46 +0300 |
commit | a44366a642bc22bc725f2a700abd14f891cfde60 (patch) | |
tree | 76b4cc0358a6ecbaeb13671fc60aebd1dcb650e5 /intern/cycles/device/device.cpp | |
parent | 35dedc11d5649352326af3701aef444b39bb6aa3 (diff) |
Cycles: Expose "Use MetalRT" checkbox
For curve-heavy scenes, memory consumption regressed when we switched from MetalRT to bvh2. Allow users to opt in to MetalRT to workaround this.
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D14071
Diffstat (limited to 'intern/cycles/device/device.cpp')
-rw-r--r-- | intern/cycles/device/device.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/cycles/device/device.cpp b/intern/cycles/device/device.cpp index 4d981e45ff1..bd7dd60e58a 100644 --- a/intern/cycles/device/device.cpp +++ b/intern/cycles/device/device.cpp @@ -328,6 +328,7 @@ DeviceInfo Device::get_multi_device(const vector<DeviceInfo> &subdevices, info.has_osl = true; info.has_profiling = true; info.has_peer_memory = false; + info.use_metalrt = false; info.denoisers = DENOISER_ALL; foreach (const DeviceInfo &device, subdevices) { @@ -374,6 +375,7 @@ DeviceInfo Device::get_multi_device(const vector<DeviceInfo> &subdevices, info.has_osl &= device.has_osl; info.has_profiling &= device.has_profiling; info.has_peer_memory |= device.has_peer_memory; + info.use_metalrt |= device.use_metalrt; info.denoisers &= device.denoisers; } |