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.h | |
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.h')
-rw-r--r-- | intern/cycles/device/device.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/cycles/device/device.h b/intern/cycles/device/device.h index c032773ddd0..544fe5b4a35 100644 --- a/intern/cycles/device/device.h +++ b/intern/cycles/device/device.h @@ -79,6 +79,7 @@ class DeviceInfo { bool has_profiling; /* Supports runtime collection of profiling info. */ bool has_peer_memory; /* GPU has P2P access to memory of another GPU. */ bool has_gpu_queue; /* Device supports GPU queue. */ + bool use_metalrt; /* Use MetalRT to accelerate ray queries (Metal only). */ DenoiserTypeMask denoisers; /* Supported denoiser types. */ int cpu_threads; vector<DeviceInfo> multi_devices; @@ -96,6 +97,7 @@ class DeviceInfo { has_profiling = false; has_peer_memory = false; has_gpu_queue = false; + use_metalrt = false; denoisers = DENOISER_NONE; } |