Commit Graph

436 Commits (deepcrayonfish)

Author SHA1 Message Date
Niklas Fiekas 744abd80cc scalafmt and prettier 2021-12-06 23:33:35 +01:00
Gian-Carlo Pascutto f5463f8686 Improve maximum hash table memory estimation.
Some browsers don't report navigator.deviceMemory to keep
fingerprintability to a minimum. Currently, lila assumes that
such a machine provides at most 256MB RAM, thus setting a 32MB
max hashtable limit.

This was a reasonable starting point when Stockfish was pure
JavaScript in a single thread, but with up 16 core WASM support
this limitation is a bit more painful.

Modify the memory estimation: if the browser is modern enough to
have full WASM/SharedArrayBuffer support, and thus run the
parallel WASM versions, assume the machine has at least 2GB of
RAM. If it doesn't, assume 512MB. This gives a maximum hashtable
of 256MB and 64MB, respectively.

The assumed minimum RAM values roughly correspond to Firefox's
official system requirements for the 32-bit and 64-bit version.
Although that doesn't necessarily correspond to WASM support,
it's a reasonable starting point for a guess.

Note that guessing wrong isn't harmful, it just gives the user
the option to shoot themselves in the foot, and even that is
limited because we still only use 1/8th of the guessed system RAM.
2021-12-06 22:54:20 +01:00
Benedikt Werner 07abf0f526
Fix: Engine toggle tooltip looks like I but is L 2021-11-09 17:38:06 +01:00
Niklas Fiekas 7b531d078d bump chessops to 0.10.2 (fix atomic with check and exploded king) 2021-10-19 13:36:38 +02:00
Benedikt Werner 2350fb26b9
Change 'knodes' to 'k nodes' 2021-10-16 06:52:07 +02:00
Albert Ford 55296fae61
Don't play pv in threat mode 2021-09-25 09:55:44 -07:00
Benedikt Werner b0201a63d1
Use @types/web instead of TS-provided "dom" types 2021-09-15 05:04:32 +02:00
Benedikt Werner 8073dc43c7
Update Typescript to 4.4.3 for requestIdleCallback 2021-09-15 04:00:59 +02:00
Benedikt Werner e7aa75be3f
Eslint 2021-09-09 10:38:44 +02:00
Benedikt Werner 8cd8e91bbd
Only prefer local eval over cloud if going deeper 2021-09-09 09:50:33 +02:00
Benedikt Werner 8e44cd0082
ui/types: Improve window types 2021-09-06 01:44:25 +02:00
Benedikt Werner 211e737ce4
Prefer ongoing ceval over cloud 2021-09-04 20:28:15 +02:00
Niklas Fiekas a4a5397f6c set UCI_Variant for each work (fixes #9715) 2021-09-04 16:39:56 +02:00
Benedikt Werner 2df003a5d6
ceval: Don't allow goDeeper when at SF max depth 2021-09-03 22:23:54 +02:00
Benedikt Werner 3bd3511d0d
Re-enable analysability detection - closes #9688 2021-09-03 22:07:35 +02:00
Niklas Fiekas 081dfcfc7b REVERT ME: disable analysability check (#9688) 2021-08-30 10:35:28 +02:00
Benedikt Werner ce183f89f4
ceval: Show maxDepth as max(depth, maxDepth) 2021-08-28 10:51:54 +02:00
Benedikt Werner eb02f74923
Formatting 2021-08-26 08:49:51 +02:00
Niklas Fiekas 99da71ad1f analysability needs to be based on root position 2021-08-25 13:03:44 +02:00
Benedikt Werner 415075342c
Move analysable position detection to ceval 2021-08-24 12:14:57 +02:00
Thibault Duplessis 72578e7f65
Merge pull request #9634 from ryg-git/issue-8912
validate position before client side evaluation
2021-08-24 08:02:30 +02:00
ryg-git 16538dbe4d case in which client eval is already enabled the toggle is set to true 2021-08-23 20:29:28 +05:30
ryg-git 0cd7ee93a9 implement suggested changes on previous commit 2021-08-23 20:28:29 +05:30
Niklas Fiekas df3b7efdbd explicitly depend on @types/cash 2021-08-23 01:33:40 +02:00
Niklas Fiekas 0d569d2ec9 use $npm_execpath in build scripts 2021-08-23 00:54:38 +02:00
ryg-git f3f3abde01 validate position before client side evaluation in local browser 2021-08-22 23:55:09 +05:30
Niklas Fiekas eeadb16e6f bump build dependencies 2021-08-22 17:21:01 +02:00
Niklas Fiekas 45d6adc5d3 use custom hybrid stop condition (closes #9430) 2021-08-21 16:35:00 +02:00
Niklas Fiekas 39d66b9c28 replace nps recorder with static heuristic 2021-08-21 15:36:47 +02:00
Niklas Fiekas fb279c8326 ceval: add feature test for i32x4.trunc_sat_f64x2_u_zero (fixes #9623)
feature_test.wat:

    (module
      (func (export "a") (param v128 v128) (result v128) (i32x4.dot_i16x8_s (local.get 0) (local.get 1)))
      (func (export "b") (param v128) (result v128) (i32x4.trunc_sat_f64x2_u_zero (local.get 0)))
    )
2021-08-21 00:00:47 +02:00
Niklas Fiekas c90e6ce901 ceval: mention smolnet 2021-08-20 15:28:45 +02:00
Hiroshi Ogawa 63110191ec Update stockfish-nnue.wasm@1.0.0-1946a675.smolnet 2021-08-20 21:19:47 +09:00
Niklas Fiekas c9094c0f42 update to chessops 0.10.0 (factored out variant name compat) 2021-08-17 18:06:00 +02:00
Niklas Fiekas a191f56fa4 fix ceval initially not off by default 2021-07-24 21:15:50 +02:00
Albert Ford 47d760e2ea Allow multiple PV moves to be played on click 2021-07-12 09:34:38 -07:00
Benedikt Werner a32038828c
Adjust pv expansion arrow icon - for #9328 2021-07-03 15:43:48 +02:00
Benedikt Werner 769e47d32b
Fix pv expansion arrow on macOS - closes #9328 2021-07-02 17:16:40 +02:00
Jean P 67010b31c5 fix ui build on windows 2021-06-30 15:45:23 +02:00
Niklas Fiekas 1105cbdf97 update build dependencies 2021-06-21 18:06:16 +02:00
Thibault Duplessis 9bbf80c36b remove chessground.config.resizable flags 2021-06-17 08:48:01 +02:00
Benedikt Werner 0ba702f9cd
ceval: Avoid empty pv collapsing (i.e. after checkmate) 2021-06-15 19:02:34 +02:00
Andrew Mazur e4db7c25e6
Icons private use area (#9136)
* move all glyphs to private area

* replace exclamation mark icon

* replace quotation mark icon

* replace rapid icon

* replace share icon

* replace patron icon

* replace gear icon

* replace phone icon

* replace streak icon

* replace die-six and ograve icons

* replace flag icon

* replace flame icon

* replace feather icon

* replace turtle icon

* replace nuclear icon

* replace arrow-streamline-target icon

* replace buffer icon

* replace upload-cloud icon

* replace number and some special characters icons

* replace upper case alphabet characters icons

* replace alphabet characters icons and a few special characters icons

* fixing some missing icons

* notifications icons fix

* a few more icons found

* changing a few more icons
2021-06-14 09:13:27 +02:00
Niklas Fiekas 615232b66f fix ceval in firefox incognito mode 2021-06-03 17:16:39 +02:00
Niklas Fiekas cfba005ff5 refactor ThreadedWasmWorker boot 2021-06-03 17:09:23 +02:00
Niklas Fiekas fcf83620ea atomic idb nnue cache update 2021-06-03 16:50:43 +02:00
Thibault Duplessis bcc95464f6 var->const 2021-05-25 10:33:31 +02:00
Benedikt Werner 28f20c683f
Fix pvboard after reinstanciating ceval 2021-05-24 21:13:03 +02:00
Thibault Duplessis c0eafd4e46
Merge branch 'master' into issue-8738 2021-05-16 08:54:44 +02:00
Diogo Jerónimo a02718aedd Fix formatting 2021-05-14 08:30:54 +01:00
Diogo Jerónimo f7bd5e9781 Refactor data-attribute 2021-05-14 08:30:54 +01:00