- Add pool mining thread benchmark: cycles through thread counts with 20s warmup + 10s measurement to find optimal setting for CPU - Add GPU-aware idle detection: GPU utilization >= 10% (video, games) treats system as active; toggle in mining tab header (default: on) Supports AMD sysfs, NVIDIA nvidia-smi, Intel freq ratio; -1 on macOS - Fix idle thread scaling: use getRequestedThreads() for immediate thread count instead of xmrig API threads_active which lags on restart - Apply active thread count on initial mining start when user is active - Skip idle mining adjustments while benchmark is running - Disable thread grid drag-to-select during benchmark - Add idle_gpu_aware setting with JSON persistence (default: true) - Add 7 i18n English strings for benchmark and GPU-aware tooltips
26 lines
496 B
C++
26 lines
496 B
C++
// DragonX Wallet - ImGui Edition
|
|
// Copyright 2024-2026 The Hush Developers
|
|
// Released under the GPLv3
|
|
|
|
#pragma once
|
|
|
|
namespace dragonx {
|
|
class App;
|
|
|
|
namespace ui {
|
|
|
|
/**
|
|
* @brief Render the Mining tab
|
|
* Controls for CPU mining with RandomX
|
|
*/
|
|
void RenderMiningTab(App* app);
|
|
|
|
/**
|
|
* @brief Returns true when the thread benchmark is actively running.
|
|
* Used by idle mining to avoid interfering with measurements.
|
|
*/
|
|
bool IsMiningBenchmarkActive();
|
|
|
|
} // namespace ui
|
|
} // namespace dragonx
|