]> git.sesse.net Git - remoteglot/commit
Force faster updates if our last output was without a PV.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 29 Dec 2020 11:16:15 +0000 (12:16 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 29 Dec 2020 11:16:15 +0000 (12:16 +0100)
commit1eb1076b96edc585c276a00c9f9a87261d8e07c6
treee22fb6ede25f3c031e63851e2355f9be440376bc
parentfcf187d3357d15598245b7444ac383752bd29e13
Force faster updates if our last output was without a PV.

This fixes an issue with the last commit, where we could end up having
a situation like:

 0.000: New move arrives, engine is busy stopping
 0.200: Engine still hasn't responded, we force display (with no PV)
 0.201: Engine finally comes back with a PV
 1.200: Display the PV

In this case, we'd be showing no PV and score for almost a second.
Fix it by starting a new 200ms timer after the PV starts coming on,
so we'd show something at 0.401 in this case (and then 1.401 etc.).
(We don't display immediately, since it's likely to be at depth 2 or so.)
remoteglot.pl