Terminating the ChessGUI project.

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

User avatar
hgm
Posts: 28344
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Terminating the ChessGUI project.

Post by hgm »

Matthias Gemuh wrote:On my WinXP32, this lag is zero ms most of the time, but sometimes 16 ms.
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.
User avatar
Matthias Gemuh
Posts: 3245
Joined: Thu Mar 09, 2006 9:10 am

Re: Terminating the ChessGUI project.

Post by Matthias Gemuh »

hgm wrote:
Matthias Gemuh wrote:On my WinXP32, this lag is zero ms most of the time, but sometimes 16 ms.
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.
Yes, either 0 or 16.
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
User avatar
hgm
Posts: 28344
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Terminating the ChessGUI project.

Post by hgm »

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_:
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.
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.
User avatar
Matthias Gemuh
Posts: 3245
Joined: Thu Mar 09, 2006 9:10 am

Re: Terminating the ChessGUI project.

Post by Matthias Gemuh »

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.
OK, then I'll throw out that relaxed timing.
My engine was quite strong till I added knowledge to it.
http://www.chess.hylogic.de
User avatar
hgm
Posts: 28344
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Terminating the ChessGUI project.

Post by hgm »

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...
User avatar
Matthias Gemuh
Posts: 3245
Joined: Thu Mar 09, 2006 9:10 am

Re: Terminating the ChessGUI project.

Post by Matthias Gemuh »

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...
Relaxed timing gives maximum lag measured so far and on Win7-64 I've seen lags of more than 300 ms ! :(

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
User avatar
Matthias Gemuh
Posts: 3245
Joined: Thu Mar 09, 2006 9:10 am

Re: Terminating the ChessGUI project.

Post by Matthias Gemuh »

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.
I am happy to announce that ChessGUI has crashed a further 2 or 3 times. :D
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
User avatar
Graham Banks
Posts: 43955
Joined: Sun Feb 26, 2006 10:52 am
Location: Auckland, NZ

Re: Terminating the ChessGUI project.

Post by Graham Banks »

Matthias Gemuh wrote:.........I probably will not terminate the ChessGUI project at this point.

Cheers,
Matthias.
:D
gbanksnz at gmail.com
Jouni
Posts: 3621
Joined: Wed Mar 08, 2006 8:15 pm
Full name: Jouni Uski

Re: Terminating the ChessGUI project.

Post by Jouni »

I am testing just with Windows7 64b. BTW please add infinite analysis to GUI - no need to setup, when paste FEN already works!

Jouni
User avatar
Matthias Gemuh
Posts: 3245
Joined: Thu Mar 09, 2006 9:10 am

Re: Terminating the ChessGUI project.

Post by Matthias Gemuh »

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
Analysis is surely on the to-do list.
My engine was quite strong till I added knowledge to it.
http://www.chess.hylogic.de