From 04e528d38faacfe6765494216d6a180793447340 Mon Sep 17 00:00:00 2001 From: ckolivas Date: Tue, 26 Jun 2012 11:29:29 +1000 Subject: [PATCH] Use much more damping when determining average opencl duration to change dynamic intensity. --- driver-opencl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver-opencl.c b/driver-opencl.c index 0571a145..8eadae37 100644 --- a/driver-opencl.c +++ b/driver-opencl.c @@ -1363,7 +1363,7 @@ static uint64_t opencl_scanhash(struct thr_info *thr, struct work *work, timersub(&gpu->tv_gpuend, &gpu->tv_gpustart, &diff); gpu_ms = diff.tv_sec * 1000 + diff.tv_usec / 1000; - gpu->gpu_ms_average = (gpu->gpu_ms_average + gpu_ms * 0.63) / 1.63; + gpu->gpu_ms_average = (gpu->gpu_ms_average + gpu_ms * 0.05) / 1.05; /* Try to not let the GPU be out for longer than 6ms, but * increase intensity when the system is idle, unless