SabakiHQ / Sabaki

An elegant Go board and SGF editor for a more civilized age.
https://sabaki.yichuanshen.de/
MIT License
2.39k stars 376 forks source link

Is it possible to limit analysis to X time after latest move? #689

Open bot19 opened 4 years ago

bot19 commented 4 years ago

I have the latest sabaki setup with katago on my linux machine. I love using the heatmap feature but if I leave it on, my computer basically comes to a stand-still due to the high CPU usage. Right now to make it usable, I have to constantly F4 toggle it on and off - not ideal. I was wondering if there's a way to turn on the analysis for 1-2 seconds and then have it stop but still show the heat map values?

Basically even if I leave it on, the values don't change much. However if I toggle it off, the values disappear so I can't look at it and ponder / study.

I was playing with the config file for katago and maxVisits and maxPlayouts don't seem to do much in the way of limitting analysis (I set them both to 1 and restarted sabaki, still hitting 100% CPU)

Looked up docs for gtp, katago, etc, nothing seems to give me an option to limit it (ie https://github.com/lightvector/KataGo/blob/master/docs/GTP_Extensions.md).

How do people even use the heatmap? It seems like regardless of how powerful your machine is, it'll just hit 100% CPU or GPU utilisation and slow your machine to almost a stop!

Thanks.

PS: thank you for your awesome work! Been using Sabaki for years, first on my mac and now on linux. Years ago, sabaki gave me the chance to play go bots using a beautiful interface and great go game controls on my mac. Don't think this would have been possible without sabaki! Now we even have awesome analysis win graph & heat map!! All the while not being too difficult to get running on any OS. Literally the impossible became possible! Thank you!

yishn commented 4 years ago

For me, KataGo only utilizes ~25% CPU and ~5% GPU, but I guess it depends on your hardware specs.

For a workaround, you can manually stop analysis without exiting analysis mode by typing in any command in the GTP console.