IMO its GUI delay in parsing output and resending the "go" command.
SF can be very agressive in "bestmove" output. And keep in mind that even when you give it literally ZERO nodes there can still be a bestmove from the PV stored earlier.
Beating Stockfish 14 on time
Moderator: Ras
-
- Posts: 1062
- Joined: Tue Apr 28, 2020 10:03 pm
- Full name: Daniel Infuehr
Re: Beating Stockfish 14 on time
Worlds-fastest-Bitboard-Chess-Movegenerator
Daniel Inführ - Software Developer
Daniel Inführ - Software Developer
-
- Posts: 7251
- Joined: Mon May 27, 2013 10:31 am
Re: Beating Stockfish 14 on time
It's already a record that game lasted more than 65 moves.
-
- Posts: 28353
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller
Re: Beating Stockfish 14 on time
In the absence of any data that is pure speculation. You might as well think that it is the engine polling the clock too infrequently.dangi12012 wrote: ↑Mon Nov 29, 2021 6:51 pm IMO its GUI delay in parsing output and resending the "go" command.
SF can be very agressive in "bestmove" output. And keep in mind that even when you give it literally ZERO nodes there can still be a bestmove from the PV stored earlier.
-
- Posts: 529
- Joined: Sat Mar 02, 2013 11:31 pm
Re: Beating Stockfish 14 on time
If Stockfish never loses on time on Cutechess but on GUI X. Then the GUI X is in blame?
Tho SF has only 10ms MoveOverhead. Which is crazy.
In Mayhem I have 100ms. But still I see time losses on XBoard.
In XBoard/Winboard the clock works weird. It probably calculates time for graphical movements too?
Tho SF has only 10ms MoveOverhead. Which is crazy.
In Mayhem I have 100ms. But still I see time losses on XBoard.
In XBoard/Winboard the clock works weird. It probably calculates time for graphical movements too?
-
- Posts: 1062
- Joined: Tue Apr 28, 2020 10:03 pm
- Full name: Daniel Infuehr
Re: Beating Stockfish 14 on time
You can measure overhead with "go" and "stop" sent instantly and measuring when SF reports a "bestmove". I guess its less than 1ms - but its just a guess.JohnWoe wrote: ↑Thu Dec 02, 2021 3:16 pm If Stockfish never loses on time on Cutechess but on GUI X. Then the GUI X is in blame?
Tho SF has only 10ms MoveOverhead. Which is crazy.
In Mayhem I have 100ms. But still I see time losses on XBoard.
In XBoard/Winboard the clock works weird. It probably calculates time for graphical movements too?
If the gui does move pieces synchronously and that takes 20ms and it subtracts that from SFs time then yes it should have sent wtime-20 to begin with.
Worlds-fastest-Bitboard-Chess-Movegenerator
Daniel Inführ - Software Developer
Daniel Inführ - Software Developer
-
- Posts: 529
- Joined: Sat Mar 02, 2013 11:31 pm
Re: Beating Stockfish 14 on time
Yes.dangi12012 wrote: ↑Thu Dec 02, 2021 3:26 pmYou can measure overhead with "go" and "stop" sent instantly and measuring when SF reports a "bestmove". I guess its less than 1ms - but its just a guess.JohnWoe wrote: ↑Thu Dec 02, 2021 3:16 pm If Stockfish never loses on time on Cutechess but on GUI X. Then the GUI X is in blame?
Tho SF has only 10ms MoveOverhead. Which is crazy.
In Mayhem I have 100ms. But still I see time losses on XBoard.
In XBoard/Winboard the clock works weird. It probably calculates time for graphical movements too?
If the gui does move pieces synchronously and that takes 20ms and it subtracts that from SFs time then yes it should have sent wtime-20 to begin with.
If only you could set 1 second on XBoard/WinBoard you could easily see this bug??? No such luxury.
I could measure it in my engine(I know it better than SF) in go -> bestmove and compare it to next time left XBoard sends. Hoping for someone else to do it

However I moved my clock higher in go command just in case...
-
- Posts: 127
- Joined: Sat Aug 21, 2021 9:55 pm
- Full name: Jen
Re: Beating Stockfish 14 on time
Interesting, I had some similar problems with SF's time management as well. When i was running a few testing games against it, i remember once seeing that it blew all it's remaining time during the middle game and then towards the end it was sending best move immediately with search depth of 0, as it didn't have almost any time left. Can't remember exactly what the time control was ... probably something around 10s with no increments.
-
- Posts: 4718
- Joined: Wed Oct 01, 2008 6:33 am
- Location: Regensburg, Germany
- Full name: Guenther Simon
Re: Beating Stockfish 14 on time
Wrong several times...JohnWoe wrote: ↑Sat Dec 04, 2021 4:48 pmYes.dangi12012 wrote: ↑Thu Dec 02, 2021 3:26 pmYou can measure overhead with "go" and "stop" sent instantly and measuring when SF reports a "bestmove". I guess its less than 1ms - but its just a guess.JohnWoe wrote: ↑Thu Dec 02, 2021 3:16 pm If Stockfish never loses on time on Cutechess but on GUI X. Then the GUI X is in blame?
Tho SF has only 10ms MoveOverhead. Which is crazy.
In Mayhem I have 100ms. But still I see time losses on XBoard.
In XBoard/Winboard the clock works weird. It probably calculates time for graphical movements too?
If the gui does move pieces synchronously and that takes 20ms and it subtracts that from SFs time then yes it should have sent wtime-20 to begin with.
If only you could set 1 second on XBoard/WinBoard you could easily see this bug??? No such luxury.
I could measure it in my engine(I know it better than SF) in go -> bestmove and compare it to next time left XBoard sends. Hoping for someone else to do it :lol:
However I moved my clock higher in go command just in case...
1. Ofc you can set seconds (base and even ms inc) '0:01' == base 1s
2. Comparisons were done alreday often in the past and xboard/winboard had always less overhead than any other GUIs (before CuteChessGui)
3. Ofc even a slightly knowledgeable user knows that he has to set move animation to false for fast tcs
Point 3 surely completely escaped henk, who is often doing things the wrong way (the game was sudden death tc BTW)
Also SF has suboptimal time management for tcs besides inc tcs.
OTH I am 99% sure (knowing henk) it was a user error with a quirky setup because I doubt SF will spend 0.4 sec for the moves in the end in SD tc.
IMO the whole thread is just hot air.
-
- Posts: 1062
- Joined: Tue Apr 28, 2020 10:03 pm
- Full name: Daniel Infuehr
Re: Beating Stockfish 14 on time
Why would the gui overhead even go against engine times? I think the gui shouldnt use the engines time to do anything at all. If gui says to engine you have 5ms time - the engine should be able to take 4ms and expect the next move to be 1ms.Guenther wrote: ↑Sat Dec 04, 2021 5:17 pmWrong several times...JohnWoe wrote: ↑Sat Dec 04, 2021 4:48 pmYes.dangi12012 wrote: ↑Thu Dec 02, 2021 3:26 pmYou can measure overhead with "go" and "stop" sent instantly and measuring when SF reports a "bestmove". I guess its less than 1ms - but its just a guess.JohnWoe wrote: ↑Thu Dec 02, 2021 3:16 pm If Stockfish never loses on time on Cutechess but on GUI X. Then the GUI X is in blame?
Tho SF has only 10ms MoveOverhead. Which is crazy.
In Mayhem I have 100ms. But still I see time losses on XBoard.
In XBoard/Winboard the clock works weird. It probably calculates time for graphical movements too?
If the gui does move pieces synchronously and that takes 20ms and it subtracts that from SFs time then yes it should have sent wtime-20 to begin with.
If only you could set 1 second on XBoard/WinBoard you could easily see this bug??? No such luxury.
I could measure it in my engine(I know it better than SF) in go -> bestmove and compare it to next time left XBoard sends. Hoping for someone else to do it![]()
However I moved my clock higher in go command just in case...
1. Ofc you can set seconds (base and even ms inc) '0:01' == base 1s
2. Comparisons were done alreday often in the past and xboard/winboard had always less overhead than any other GUIs (before CuteChessGui)
3. Ofc even a slightly knowledgeable user knows that he has to set move animation to false for fast tcs
Point 3 surely completely escaped henk, who is often doing things the wrong way (the game was sudden death tc BTW)
Also SF has suboptimal time management for tcs besides inc tcs.
OTH I am 99% sure (knowing henk) it was a user error with a quirky setup because I doubt SF will spend 0.4 sec for the moves in the end in SD tc.
IMO the whole thread is just hot air.
Everthing else is a programming error of the gui!
Worlds-fastest-Bitboard-Chess-Movegenerator
Daniel Inführ - Software Developer
Daniel Inführ - Software Developer
-
- Posts: 529
- Joined: Sat Mar 02, 2013 11:31 pm
Re: Beating Stockfish 14 on time
This.dangi12012 wrote: ↑Sat Dec 04, 2021 5:28 pmWhy would the gui overhead even go against engine times? I think the gui shouldnt use the engines time to do anything at all. If gui says to engine you have 5ms time - the engine should be able to take 4ms and expect the next move to be 1ms.Guenther wrote: ↑Sat Dec 04, 2021 5:17 pmWrong several times...JohnWoe wrote: ↑Sat Dec 04, 2021 4:48 pmYes.dangi12012 wrote: ↑Thu Dec 02, 2021 3:26 pmYou can measure overhead with "go" and "stop" sent instantly and measuring when SF reports a "bestmove". I guess its less than 1ms - but its just a guess.JohnWoe wrote: ↑Thu Dec 02, 2021 3:16 pm If Stockfish never loses on time on Cutechess but on GUI X. Then the GUI X is in blame?
Tho SF has only 10ms MoveOverhead. Which is crazy.
In Mayhem I have 100ms. But still I see time losses on XBoard.
In XBoard/Winboard the clock works weird. It probably calculates time for graphical movements too?
If the gui does move pieces synchronously and that takes 20ms and it subtracts that from SFs time then yes it should have sent wtime-20 to begin with.
If only you could set 1 second on XBoard/WinBoard you could easily see this bug??? No such luxury.
I could measure it in my engine(I know it better than SF) in go -> bestmove and compare it to next time left XBoard sends. Hoping for someone else to do it![]()
However I moved my clock higher in go command just in case...
1. Ofc you can set seconds (base and even ms inc) '0:01' == base 1s
2. Comparisons were done alreday often in the past and xboard/winboard had always less overhead than any other GUIs (before CuteChessGui)
3. Ofc even a slightly knowledgeable user knows that he has to set move animation to false for fast tcs
Point 3 surely completely escaped henk, who is often doing things the wrong way (the game was sudden death tc BTW)
Also SF has suboptimal time management for tcs besides inc tcs.
OTH I am 99% sure (knowing henk) it was a user error with a quirky setup because I doubt SF will spend 0.4 sec for the moves in the end in SD tc.
IMO the whole thread is just hot air.
Everthing else is a programming error of the gui!
Whatever happens in the GUI shouldn't have any effect thinking time for the engine. If properly implemented.
Mayhem for example has 100ms MoveOverhead. So Mayhem never uses more than "time available" - 100ms.
Time losses are only possible on very weak HW.
More XBoard bugs. How is f5g6 illegal move? Look at this game:
[pgn][Event "Computer Chess Game"]
[Site "pc"]
[Date "2021.12.04"]
[Round "-"]
[White "Mayhem 6.4"]
[Black "Mayhem 6.4"]
[Result "0-1"]
[TimeControl "60+1"]
[FEN "rnbqkbnr/pppppppp/8/PPPPPPPP/PPPPPPPP/PPPPPPPP/PPPPPPPP/PPPPKPPP w kq - 0 1"]
[SetUp "1"]
{--------------
r n b q k b n r
p p p p p p p p
. . . . . . . .
P P P P P P P P
P P P P P P P P
P P P P P P P P
P P P P P P P P
P P P P K P P P
white to play
--------------}
1. h6 {-13,20/18} g6 {+13,06/17 3}
{polyglot: resign (illegal engine move by white: f5g6)} 0-1
[/pgn]