Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/cycles/device/device.cpp')
-rw-r--r--intern/cycles/device/device.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/intern/cycles/device/device.cpp b/intern/cycles/device/device.cpp
index 721c262f094..ee160b275ce 100644
--- a/intern/cycles/device/device.cpp
+++ b/intern/cycles/device/device.cpp
@@ -191,18 +191,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
@@ -226,7 +214,6 @@ vector<DeviceInfo>& Device::available_devices()
#endif
devices_init = true;
- device_update_time = time_dt();
}
return devices;