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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2012-11-20 21:39:56 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-11-20 21:39:56 +0400
commita80b0915c7e0dbbe1ce0d9abfd23809f1d870f3e (patch)
tree79d9c6ed024b86d477b12a21afa4984226b96442 /intern/cycles/device/device.cpp
parent68e9fdeb810e1665c1415abffc43ba3e2030e88d (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.
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 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;