diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-11-20 21:39:56 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-11-20 21:39:56 +0400 |
commit | a80b0915c7e0dbbe1ce0d9abfd23809f1d870f3e (patch) | |
tree | 79d9c6ed024b86d477b12a21afa4984226b96442 | |
parent | 68e9fdeb810e1665c1415abffc43ba3e2030e88d (diff) |
Fix #33243: cycles CUDA going missing sometimes, disabled the new code now that
can detect if a device becomes available while Blender runs, appears to be
unreliable for some reason.
-rw-r--r-- | intern/cycles/device/device.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/intern/cycles/device/device.cpp b/intern/cycles/device/device.cpp index c6a2c678bac..1248b42b738 100644 --- a/intern/cycles/device/device.cpp +++ b/intern/cycles/device/device.cpp @@ -189,18 +189,6 @@ vector<DeviceInfo>& Device::available_devices() { static vector<DeviceInfo> devices; static bool devices_init = false; - static double device_update_time = 0.0; - - /* only update device list if we're not actively rendering already, things - * could go very wrong if a device suddenly becomes (un)available. also do - * it only every 5 seconds. it not super cpu intensive but don't want to do - * it on every redraw. */ - if(devices_init) { - if(!TaskScheduler::active() && (time_dt() > device_update_time + 5.0)) { - devices.clear(); - devices_init = false; - } - } if(!devices_init) { #ifdef WITH_CUDA @@ -224,7 +212,6 @@ vector<DeviceInfo>& Device::available_devices() #endif devices_init = true; - device_update_time = time_dt(); } return devices; |