xboard - delay between games?

Discussion of chess software programming and technical issues.

Moderators: hgm, Harvey Williamson, bob

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
Post Reply
cyberfish

xboard - delay between games?

Post by cyberfish » Sun Oct 05, 2008 11:24 pm

I suspected this is a frequently asked question but I can't find any references from Google. The xboard documentation doesn't say anything related to this either.

xboard inserts s ~10 seconds delay between games in a match between two engines. Is there any way to eliminate that? It wastes a large proportion of time when running very fast matches.

If not, can someone suggest another GUI for this purpose (engine against engine matches) on Linux that doesn't have this delay? What is this delay for anyways?

Thanks

User avatar
sje
Posts: 4675
Joined: Mon Mar 13, 2006 6:43 pm

Re: xboard - delay between games?

Post by sje » Sun Oct 05, 2008 11:34 pm

There is no option for this; you'll have to change the source and rebuild.

cyberfish

Re: xboard - delay between games?

Post by cyberfish » Mon Oct 06, 2008 12:09 am

Thanks for the information.

For other people interested, the line to change is line 5224 in backend.c (of the latest version - 4.2.7)

ScheduleDelayedEvent(NextMatchGame, 10000);

Change 10000 to the delay you want in milliseconds. I tried 0 and it works fine. I don't know why it was there in the first place, though, so their may be side effects that I am not aware of.

Works fine for me and my engine, though (tested 50 "0 1" games).

There is still a ~1 second delay between games (and I don't know where that came from), but I am less concerned with that.

User avatar
Zach Wegner
Posts: 1922
Joined: Wed Mar 08, 2006 11:51 pm
Location: Earth
Contact:

Re: xboard - delay between games?

Post by Zach Wegner » Mon Oct 06, 2008 2:09 am

There is an option for this in newer xboard versions (4.3.x), the "-matchPause" option.

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

Re: xboard - delay between games?

Post by hgm » Mon Oct 06, 2008 10:54 am

The option

-matchPause N

sets the pause between matches to N msec. Only values between 10 msec and 10 sec are accepted; if you give something outside of that range, the default of 10 sec is used.

Post Reply