1. in xboard.c, I made DisplayWhiteClock and DisplayBlackClock do nothing (return immediately). This makes xboard take almost no CPU. At 2s/40moves, drawing clocks (and updating the taskbar icon) takes about 80% of the other core on my Core 2 Duo at 3.3ghz. I suppose it's drawing the taskbar that matters, and will depend on window manager, etc. I am running Ubuntu 8.10, with compiz (desktop effects) and GNOME.
2.
backend.c
Code: Select all
void
TwoMachinesEventIfReady P((void))
{
if (first.lastPing != first.lastPong) {
DisplayMessage("", "Waiting for first chess program");
ScheduleDelayedEvent(TwoMachinesEventIfReady, 1000);
return;
}
if (second.lastPing != second.lastPong) {
DisplayMessage("", "Waiting for second chess program");
ScheduleDelayedEvent(TwoMachinesEventIfReady, 1000);
return;
}
ThawUI();
TwoMachinesEvent();
}
Any chance these 2 things can be made into a switch?
Also, while "Animate Moving" should obviously be disabled, "blind" surprisingly doesn't matter.