mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-10 13:13:34 +01:00
Windows: don't change thread priority when benchmarking encryption algorithms for more accurate results
This commit is contained in:
parent
91e0de6145
commit
77e665520e
@ -5134,7 +5134,7 @@ static BOOL PerformBenchmark(HWND hBenchDlg, HWND hwndDlg)
|
||||
startDataUnitNo.Value = 0;
|
||||
|
||||
/* set priority to critical only when there are 2 or more CPUs on the system */
|
||||
if (sysInfo.dwNumberOfProcessors > 1)
|
||||
if (sysInfo.dwNumberOfProcessors > 1 && (benchmarkType != BENCHMARK_TYPE_ENCRYPTION))
|
||||
SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_TIME_CRITICAL);
|
||||
|
||||
ci = crypto_open ();
|
||||
|
Loading…
Reference in New Issue
Block a user