notnil / chess

chess package for go
MIT License
521 stars 133 forks source link

Add uci.Engine.Getpid() #124

Open mikeb26 opened 1 year ago

mikeb26 commented 1 year ago

This change adds a Renice() method receiver to uci.Engine. This enables callers to specify that the engine should be run at a lower priority. In practice this is helpful in improving system responsiveness when running the engine with high thread counts and/or larger hash sizes.

(cherry picked from commit 92c19038af6ce77a985384e1081b920345cd417c)

notnil commented 2 days ago

Maybe just surfacing the PID is a bit cleaner and allows for a multitude of performance monitoring use cases

mikeb26 commented 1 day ago

Maybe just surfacing the PID is a bit cleaner and allows for a multitude of performance monitoring use cases

done.