Do you mean it is either 0 or 16, or can it be anything in between? Being 0 or 16 is bit suspect, as it suggests you are reading a clock that ticks only 60 times per second.Matthias Gemuh wrote:On my WinXP32, this lag is zero ms most of the time, but sometimes 16 ms.
Terminating the ChessGUI project.
Moderator: Ras
-
- Posts: 28342
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller
Re: Terminating the ChessGUI project.
-
- Posts: 3245
- Joined: Thu Mar 09, 2006 9:10 am
Re: Terminating the ChessGUI project.
Yes, either 0 or 16.hgm wrote:Do you mean it is either 0 or 16, or can it be anything in between? Being 0 or 16 is bit suspect, as it suggests you are reading a clock that ticks only 60 times per second.Matthias Gemuh wrote:On my WinXP32, this lag is zero ms most of the time, but sometimes 16 ms.
I use GetTicks() which claims to know time in milliseconds.
My engine was quite strong till I added knowledge to it.
http://www.chess.hylogic.de
http://www.chess.hylogic.de
-
- Posts: 28342
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller
Re: Terminating the ChessGUI project.
OK. The WinBoard time stamps on my system seem to increment in steps of 10ms, which is indeed what the docs sys about the system timer. It gives the time in millisec _precison_, but only to 16 msec _accuracy_:
In particular it does not mean that anything you do immediately before it, or immediately after it takes any more time than it would take on average. The only thing you do know, is that if you would time it, using GetTicks / GetTickCount, is that you would time an exact zero msec. Because you are sure to miss the clock tick, and there is only one tick every 16 msec, and you just missed it.
But in that case it really doesn't mean a thing. The clock has to tick at some time, and when you happen to send just before that, and receive after it, you will time 16 msec. Even if the real delay was only 0.025 msec. That would just mean it happened less frequently, because it must be more of a coincidence that the clock happens to tick during this time.MicroSoft wrote:The resolution of the GetTickCount function is limited to the resolution of the system timer, which is typically in the range of 10 milliseconds to 16 milliseconds.
In particular it does not mean that anything you do immediately before it, or immediately after it takes any more time than it would take on average. The only thing you do know, is that if you would time it, using GetTicks / GetTickCount, is that you would time an exact zero msec. Because you are sure to miss the clock tick, and there is only one tick every 16 msec, and you just missed it.
-
- Posts: 3245
- Joined: Thu Mar 09, 2006 9:10 am
Re: Terminating the ChessGUI project.
OK, then I'll throw out that relaxed timing.hgm wrote:
But in that case it really doesn't mean a thing. The clock has to tick at some time, and when you happen to send just before that, and receive after it, you will time 16 msec. Even if the real delay was only 0.025 msec. That would just mean it happened less frequently, because it must be more of a coincidence that the clock happens to tick during this time.
In particular it does not mean that anything you do immediately before it, or immediately after it takes any more time than it would take on average. The only thing you do know, is that if you would time it, using GetTicks / GetTickCount, is that you would time an exact zero msec. Because you are sure to miss the clock tick, and there is only one tick every 16 msec, and you just missed it.
My engine was quite strong till I added knowledge to it.
http://www.chess.hylogic.de
http://www.chess.hylogic.de
-
- Posts: 28342
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller
Re: Terminating the ChessGUI project.
Still funny that it seems to help for Stockfish, though. It must mean that the time losses occur in the move after the one that you received imediately before a clock tick. Because those are the only moves that get 16 msec extra time, if I understood your algorithm, and giving those moves extra time apparently makes all time losses go away...
-
- Posts: 3245
- Joined: Thu Mar 09, 2006 9:10 am
Re: Terminating the ChessGUI project.
Relaxed timing gives maximum lag measured so far and on Win7-64 I've seen lags of more than 300 ms !hgm wrote:Still funny that it seems to help for Stockfish, though. It must mean that the time losses occur in the move after the one that you received imediately before a clock tick. Because those are the only moves that get 16 msec extra time, if I understood your algorithm, and giving those moves extra time apparently makes all time losses go away...

Anyway, I'll throw out relaxed timing if I continue with ChessGUI.
My engine was quite strong till I added knowledge to it.
http://www.chess.hylogic.de
http://www.chess.hylogic.de
-
- Posts: 3245
- Joined: Thu Mar 09, 2006 9:10 am
Re: Terminating the ChessGUI project.
I am happy to announce that ChessGUI has crashed a further 2 or 3 times.Matthias Gemuh wrote:Terminating the ChessGUI project.
There's nothing as bad as a buggy GUI.
I have not been able to account for time forfeits under Windows 64-Bit. Furthermore, ChessGUI has crashed 3 times in just a few days in Martin Thoresen's tournament. If I cannot figure out the cause of the crashes, it makes no sense to continue with the ChessGUI project.
If the project must end here, I shall update ChessGUI one last time.
Cheers,
Matthias.

Crash logs say that the problem occurs alwys while saving pgn live (i.e after every move for online transmission).
Now that I at least know where to look for a solution, I probably will not terminate the ChessGUI project at this point.
Cheers,
Matthias.
My engine was quite strong till I added knowledge to it.
http://www.chess.hylogic.de
http://www.chess.hylogic.de
-
- Posts: 43951
- Joined: Sun Feb 26, 2006 10:52 am
- Location: Auckland, NZ
Re: Terminating the ChessGUI project.
Matthias Gemuh wrote:.........I probably will not terminate the ChessGUI project at this point.
Cheers,
Matthias.

gbanksnz at gmail.com
-
- Posts: 3621
- Joined: Wed Mar 08, 2006 8:15 pm
- Full name: Jouni Uski
Re: Terminating the ChessGUI project.
I am testing just with Windows7 64b. BTW please add infinite analysis to GUI - no need to setup, when paste FEN already works!
Jouni
Jouni
-
- Posts: 3245
- Joined: Thu Mar 09, 2006 9:10 am
Re: Terminating the ChessGUI project.
Analysis is surely on the to-do list.Jouni wrote:I am testing just with Windows7 64b. BTW please add infinite analysis to GUI - no need to setup, when paste FEN already works!
Jouni
My engine was quite strong till I added knowledge to it.
http://www.chess.hylogic.de
http://www.chess.hylogic.de