NPS=0 mode bug fix
Posted: 22 Feb 2011, 16:28
Hi,
I forgot to report this one : to use NPS mode 0 (ie use time actually used to engine), i had to change "if(cps->nps > 0) { /* [HGM] nps */" to "if(cps->nps >= 0) { /* [HGM] nps */" in backend.c (line 12573 & 13731). Without this, winboard does not send the nps command to the engines.
Seems like i am the only user of this very useful feature
BTW i found clock() to be of no use under Windows (=wall clock time), i am using GetProcessTimes which seems to do the job - i wonder if there is a better alternative.
François
I forgot to report this one : to use NPS mode 0 (ie use time actually used to engine), i had to change "if(cps->nps > 0) { /* [HGM] nps */" to "if(cps->nps >= 0) { /* [HGM] nps */" in backend.c (line 12573 & 13731). Without this, winboard does not send the nps command to the engines.
Seems like i am the only user of this very useful feature
BTW i found clock() to be of no use under Windows (=wall clock time), i am using GetProcessTimes which seems to do the job - i wonder if there is a better alternative.
François