lucaschessR2 icon indicating copy to clipboard operation
lucaschessR2 copied to clipboard

Sluggish with analysis bar enabled

Open medwatt opened this issue 1 month ago • 4 comments

I have always had the analysis bar enabled by default and never thought anything of it. However, I recently turned it off and noticed that moving pieces are much snappier. It could be that the code that controls piece movement waits until the analysis bar finishes evaluation. If this so, why not let the analysis bar run asynchronously or start its own process to avoid the sluggishness or hanging ?

medwatt avatar Oct 23 '25 09:10 medwatt

I have some ideas about the movement of pieces that I will implement in the R6 version, and that will probably solve this kind of problem. In this R2 version, I will not make any such changes.

lukasmonk avatar Oct 23 '25 13:10 lukasmonk

In the end I've made some changes, recycling work I've done for the R6, I'm not sure the changes will solve the situation.

lukasmonk avatar Oct 26 '25 15:10 lukasmonk

Thanks for the update. I just tried it. Two things I noticed.

  1. The analysis bar animation is now has a very low framerate (choppy), which looks weird.
  2. Stockfish keeps running in the background (high cpu usage), which was not the case in the previous version.
  3. I didn't notice much of an improvement in the snappiness as compared to before.

In total, this feels more like a regression.

medwatt avatar Oct 26 '25 17:10 medwatt

Thank you. I have compared both versions and the new one, which should theoretically work better, does not. So now and in the future on the R6, it reverts to the previous version.

lukasmonk avatar Oct 26 '25 18:10 lukasmonk