Skip to content

feat: default to 1 mining thread on Android for autodetect#63

Merged
sn1f3rt merged 1 commit intomasterfrom
feat/mobile-autodetect-single-thread
Mar 22, 2026
Merged

feat: default to 1 mining thread on Android for autodetect#63
sn1f3rt merged 1 commit intomasterfrom
feat/mobile-autodetect-single-thread

Conversation

@sn1f3rt
Copy link
Copy Markdown
Member

@sn1f3rt sn1f3rt commented Mar 21, 2026

Summary

  • On Android, when autodetect is used (threads = 0), default to 1 CPU thread instead of running progressive thread detection
  • Non-Android platforms retain existing autodetect behaviour
  • Informs the user via log message that the mobile default is 1 thread and they can set more manually

Why

Mobile devices have thermal and battery constraints that make full CPU utilization unsuitable as a default. The existing autodetect ramps threads up progressively which is fine on desktop but inappropriate for phones/tablets.

Closes #62

On mobile devices, autodetecting and ramping up to the optimal thread
count can cause thermal and battery issues. When mining is started with
thread count 0 (autodetect) on Android, default to 1 thread instead of
running the progressive autodetection. Users can still set a higher
thread count manually.

Closes #62
@sn1f3rt sn1f3rt added the enhancement New feature or request label Mar 21, 2026
@sn1f3rt sn1f3rt self-assigned this Mar 21, 2026
@github-actions
Copy link
Copy Markdown

Build Artifacts

Target Status Download
nerva-linux-armv7 Download
nerva-linux-armv8 Download
nerva-windows-x32 Download
nerva-linux-i686 Download
nerva-windows-x64 Download
nerva-linux-x86_64 Download
nerva-macos-x64 Download
nerva-macos-armv8 Download
nerva-freebsd-x86_64 Download
nerva-android-armv8 Download

10 succeeded, 0 failed | View workflow run

@sn1f3rt sn1f3rt merged commit 06b8293 into master Mar 22, 2026
15 checks passed
@sn1f3rt sn1f3rt deleted the feat/mobile-autodetect-single-thread branch March 22, 2026 05:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: use 1 CPU thread by default on mobile devices for autodetect

1 participant