lichess-org / lila

♞ lichess.org: the forever free, adless and open source chess server ♞
https://lichess.org
GNU Affero General Public License v3.0
15.66k stars 2.28k forks source link

Adding more lines in engine analysis only shows more lines if you go back or forward 1 move but not for current position. #15313

Open danispringer opened 6 months ago

danispringer commented 6 months ago

Exact URL of where the bug happened

Literally anything, but for example: https://lichess.org/analysis/standard/r2qrbk1/5ppp/pn1p4/np2P1P1/3p4/5N2/PPB2PP1/R1BQR1K1_w_-_-_1_20?color=white#48

Steps to reproduce the bug

visit URL, turn on engine, play some moves, then change lines from 1 to more, like 4

What did you expect to happen?

4 lines should be shown

What happened instead?

only 1 line is shown, unless you play some random move or go back at least 1 move in the line you just played before turning on more lines

Operating system

macos

Browser and version (or alternate access method)

brave

Additional information

No response

jamestjw commented 3 months ago

@danispringer It seems to me that the extra lines do get shown, but its just a matter of time. Suppose that you switch to number of lines from 1 to 4 when you were at depth 22, from what I observed, the extra lines will appear when we have finished all 4 lines at depth 22, which takes much more time than calculating one PV to depth 22. I guess we could argue that switching the number of lines should perhaps reset even the previous search result, but I think this could indeed be a matter of preference, and it might be an interesting change to introduce and make it something people can toggle in the settings.