mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-07 16:05:05 -05:00
Implement low power mode (double hash).
This commit is contained in:
@@ -85,7 +85,8 @@ static BOOL SetLockPagesPrivilege(HANDLE hProcess, BOOL bEnable) {
|
||||
|
||||
|
||||
const char * persistent_memory_allocate() {
|
||||
const int size = MEMORY * (opt_n_threads + 1);
|
||||
const int ratio = opt_double_hash ? 2 : 1;
|
||||
const int size = MEMORY * (opt_n_threads * ratio + 1);
|
||||
|
||||
if (SetLockPagesPrivilege(GetCurrentProcess(), TRUE)) {
|
||||
persistent_memory_flags |= MEMORY_HUGEPAGES_AVAILABLE;
|
||||
|
||||
Reference in New Issue
Block a user