1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-14 03:39:09 +00:00

improved autotune engine

This commit is contained in:
jsteube 2016-05-03 12:37:43 +02:00
parent dbe2d96618
commit 54df10b36d

View File

@ -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;