Closed isaacl closed 5 years ago
Posting brief explanation in https://lichess.org/forum/lichess-feedback/analysis-cpu-count-stuck-below-possible-limit
This partially fixes the issue, but also need to change the max to 8 in actionMenu.ts.
In ceval/src/ctrl.ts
, cores are initially set via:
const threads = storedProp(storageKey('ceval.threads'), Math.min(Math.ceil((navigator.hardwareConcurrency || 1) / 2), 8));
which caps cores at 8. So for a wasm user with 6 hyperthreaded cores, the slider will show '6 / 4', and once the slider is adjusted the user won't be able to adjust again.
Ok, will fix. stockfish.wasm caps the value it receives, so at least it's only a display issue now.
Done. There's still the case where local storage has a larger than max value when the technology or something about the hardware changed.
In
actionMenu.ts
we have:This is capping ceval threads even when pnacl is used.
Also, the default number of threads is capped at 8, but the slider is capped at 4. So my slider started at "6 / 4".