From dd9166e91c86281ba6c2dad12b93d941bbecd4a0 Mon Sep 17 00:00:00 2001 From: SChernykh Date: Sun, 29 Aug 2021 17:36:10 +0200 Subject: [PATCH] Update dataset at normal thread priority --- src/pow_hash.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pow_hash.cpp b/src/pow_hash.cpp index 56a6b17..3e8bc18 100644 --- a/src/pow_hash.cpp +++ b/src/pow_hash.cpp @@ -221,7 +221,8 @@ void RandomX_Hasher::set_seed(const hash& seed) threads.emplace_back([this, a, b]() { - make_thread_background(); + // Background doesn't work very well with xmrig mining on all cores + //make_thread_background(); randomx_init_dataset(m_dataset, m_cache[m_index], a, b - a); }); }