From 54df10b36d86521567e6a6fd6db48869a207a24a Mon Sep 17 00:00:00 2001 From: jsteube Date: Tue, 3 May 2016 12:37:43 +0200 Subject: [PATCH] improved autotune engine --- src/oclHashcat.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/oclHashcat.c b/src/oclHashcat.c index f289bb17f..035a97de4 100644 --- a/src/oclHashcat.c +++ b/src/oclHashcat.c @@ -3018,6 +3018,20 @@ static void autotune (hc_device_param_t *device_param) } } + // because of the balance we may have some free space left! + // at this point, allow a small variance to overdrive the limit + + const int exec_left = (target_ms * 1.2) / exec_best; + + const int accel_left = kernel_accel_max / kernel_accel_best; + + const int exec_accel_min = MIN (exec_left, accel_left); + + if (exec_accel_min) + { + kernel_accel_best *= exec_accel_min; + } + // reset timer device_param->exec_pos = 0;