mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-11 16:21:12 +00:00
improved autotune engine
This commit is contained in:
parent
dbe2d96618
commit
54df10b36d
@ -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
|
// reset timer
|
||||||
|
|
||||||
device_param->exec_pos = 0;
|
device_param->exec_pos = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user