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
path: root/intern
diff options
context:
space:
mode:
authorMartijn Berger <martijn.berger@gmail.com>2014-02-17 23:11:45 +0400
committerMartijn Berger <martijn.berger@gmail.com>2014-02-17 23:11:45 +0400
commitf1aeb2ccf4deb4625f7ae59d673317d09b9580ca (patch)
tree26f06b2cb20cbff3bbe786b812f0b5b466fef92e /intern
parent7cc954d7a7072a3aad59354021fde28d4273ac8b (diff)
this is an attempted Fix: T38679
Cycles GPU Performance Regression From my testing this (what i should have done in the first place) reduces the regression a lot. Lets hope it is enough or we have to go back to busy waiting.
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/device/device_cuda.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/intern/cycles/device/device_cuda.cpp b/intern/cycles/device/device_cuda.cpp
index 3073f078d12..fa65aeffba1 100644
--- a/intern/cycles/device/device_cuda.cpp
+++ b/intern/cycles/device/device_cuda.cpp
@@ -654,9 +654,6 @@ public:
cuda_assert(cuFuncSetBlockShape(cuPathTrace, xthreads, ythreads, 1))
cuda_assert(cuLaunchGridAsync(cuPathTrace, xblocks, yblocks, cuStream))
- cuda_assert(cuEventRecord(tileDone, cuStream ))
- cuda_assert(cuEventSynchronize(tileDone))
-
cuda_pop_context();
}
@@ -989,6 +986,8 @@ public:
task->update_progress(tile);
}
+ cuda_assert(cuEventRecord(tileDone, cuStream ))
+ cuda_assert(cuEventSynchronize(tileDone))
task->release_tile(tile);
}