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/metal/device_impl.mm | |
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/metal/device_impl.mm')
-rw-r--r-- | intern/cycles/device/metal/device_impl.mm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/device/metal/device_impl.mm b/intern/cycles/device/metal/device_impl.mm index 251ba54e477..cdaafc60ab0 100644 --- a/intern/cycles/device/metal/device_impl.mm +++ b/intern/cycles/device/metal/device_impl.mm @@ -100,6 +100,7 @@ MetalDevice::MetalDevice(const DeviceInfo &info, Stats &stats, Profiler &profile } } + use_metalrt = info.use_metalrt; if (auto metalrt = getenv("CYCLES_METALRT")) { use_metalrt = (atoi(metalrt) != 0); } |