there's no difference. Crafty parses the "=" out using strtok() so whether you use a space or = has no effect on the result, which will be the same either way.F. Bluemers wrote:I found the cause of the double created games and logs.
both Jim and Peter usedin their crafty.rc filesCode: Select all
log=off
so I used.Crafy does not like that,it seems .Code: Select all
log=on
works as it should.Code: Select all
log on
Crafty 23.1 JA quirks
Moderators: hgm, Rebel, chrisw
-
- Posts: 20943
- Joined: Mon Feb 27, 2006 7:30 pm
- Location: Birmingham, AL
Re: Crafty 23.1 JA quirks
-
- Posts: 3533
- Joined: Tue Jan 09, 2007 8:33 pm
- Location: Antalya, Turkey
Re: Crafty 23.1 JA quirks
Is there a performance difference between the modes with?bob wrote:there's no difference. Crafty parses the "=" out using strtok() so whether you use a space or = has no effect on the result, which will be the same either way.F. Bluemers wrote:I found the cause of the double created games and logs.
both Jim and Peter usedin their crafty.rc filesCode: Select all
log=off
so I used.Crafy does not like that,it seems .Code: Select all
log=on
works as it should.Code: Select all
log on
i. log off
ii. log on
For blitz games, I mean: Do writing logs hurt the performance of crafty?
Best,
hi, merhaba, hallo HT
-
- Posts: 173
- Joined: Sun May 11, 2008 7:43 am
Re: Crafty 23.1 JA quirks
Not under normal circumstances.For blitz games, I mean: Do writing logs hurt the performance of crafty?
If it output MB of text at each move it could slow a bit (modify trace() function to output to logfile)... but then you wouldn't be worried about the performance of play but the data it output anyway.
-
- Posts: 20943
- Joined: Mon Feb 27, 2006 7:30 pm
- Location: Birmingham, AL
Re: Crafty 23.1 JA quirks
Very slightly, yes. Nothing is free when doing system calls.beachknight wrote:Is there a performance difference between the modes with?bob wrote:there's no difference. Crafty parses the "=" out using strtok() so whether you use a space or = has no effect on the result, which will be the same either way.F. Bluemers wrote:I found the cause of the double created games and logs.
both Jim and Peter usedin their crafty.rc filesCode: Select all
log=off
so I used.Crafy does not like that,it seems .Code: Select all
log=on
works as it should.Code: Select all
log on
i. log off
ii. log on
For blitz games, I mean: Do writing logs hurt the performance of crafty?
Best,
-
- Posts: 868
- Joined: Thu Mar 09, 2006 11:21 pm
- Location: Nederland
Re: Crafty 23.1 JA quirks
Yes,you are right. There was another difference that seemed unimportant.
If the first line is empty,it works fine.
But if I remove the empty line (first line would become #egtb) it creates the log and game files twice.
Code: Select all
#egtb
#adaptive 750K 24M 192M 24M 48M
#tbpath=d:\progra~1\arena\nalimov
cache=32M
ponder off
#
# (for use use with ponder on)
# mode=tournament
#
# (Allows Crafty to try to win drawn games (according to Endgame Tables))
swindle on
#
# (default)
learn 7
#
# (default)
book random 1
#
bookw freq 0.7
bookw ratio 0.8
bookw eval 0.6
bookw learn 1
bookw cap 0.5
book width 4
#
#(default = book on)
book on
#
show book
log=on
#
# (Increases Crafty's MaxThreads to 2 for a dual CPU computer )
mt=2
#
# (Make Crafty not use cpu on opponents time)
#smpnice=1
#
# (Makes crafty use a lot more time on the first 8 moves out of book)
timebook 80 8
#adaptive NPS a
hash 45M
hashp 16M
exit
But if I remove the empty line (first line would become #egtb) it creates the log and game files twice.
-
- Posts: 20943
- Joined: Mon Feb 27, 2006 7:30 pm
- Location: Birmingham, AL
Re: Crafty 23.1 JA quirks
Can't reproduce that here. The _only_ time it tries to create a new log file is when it first starts, and whenever it receives a "new" command.F. Bluemers wrote:Yes,you are right. There was another difference that seemed unimportant.If the first line is empty,it works fine.Code: Select all
#egtb #adaptive 750K 24M 192M 24M 48M #tbpath=d:\progra~1\arena\nalimov cache=32M ponder off # # (for use use with ponder on) # mode=tournament # # (Allows Crafty to try to win drawn games (according to Endgame Tables)) swindle on # # (default) learn 7 # # (default) book random 1 # bookw freq 0.7 bookw ratio 0.8 bookw eval 0.6 bookw learn 1 bookw cap 0.5 book width 4 # #(default = book on) book on # show book log=on # # (Increases Crafty's MaxThreads to 2 for a dual CPU computer ) mt=2 # # (Make Crafty not use cpu on opponents time) #smpnice=1 # # (Makes crafty use a lot more time on the first 8 moves out of book) timebook 80 8 #adaptive NPS a hash 45M hashp 16M exit
But if I remove the empty line (first line would become #egtb) it creates the log and game files twice.
-
- Posts: 868
- Joined: Thu Mar 09, 2006 11:21 pm
- Location: Nederland
Re: Crafty 23.1 JA quirks
Seems that the last rc file i tried was not even parsed by crafty,bob wrote:Can't reproduce that here. The _only_ time it tries to create a new log file is when it first starts, and whenever it receives a "new" command.F. Bluemers wrote:Yes,you are right. There was another difference that seemed unimportant.If the first line is empty,it works fine.Code: Select all
#egtb #adaptive 750K 24M 192M 24M 48M #tbpath=d:\progra~1\arena\nalimov cache=32M ponder off # # (for use use with ponder on) # mode=tournament # # (Allows Crafty to try to win drawn games (according to Endgame Tables)) swindle on # # (default) learn 7 # # (default) book random 1 # bookw freq 0.7 bookw ratio 0.8 bookw eval 0.6 bookw learn 1 bookw cap 0.5 book width 4 # #(default = book on) book on # show book log=on # # (Increases Crafty's MaxThreads to 2 for a dual CPU computer ) mt=2 # # (Make Crafty not use cpu on opponents time) #smpnice=1 # # (Makes crafty use a lot more time on the first 8 moves out of book) timebook 80 8 #adaptive NPS a hash 45M hashp 16M exit
But if I remove the empty line (first line would become #egtb) it creates the log and game files twice.
and as that worked ok for logs,I started to suspect "log on" itself.
Crafy creates new game and log files when it encounters "log on".
You can see that if you put it one or more times in the rc file or type it on the commandline.
Best
Fonzy
-
- Posts: 20943
- Joined: Mon Feb 27, 2006 7:30 pm
- Location: Birmingham, AL
Re: Crafty 23.1 JA quirks
you are right, but it would never occur to me to put "log=on" in the .craftyrc file, since that is the default setting. I don't put defaults in there at all.F. Bluemers wrote:Seems that the last rc file i tried was not even parsed by crafty,bob wrote:Can't reproduce that here. The _only_ time it tries to create a new log file is when it first starts, and whenever it receives a "new" command.F. Bluemers wrote:Yes,you are right. There was another difference that seemed unimportant.If the first line is empty,it works fine.Code: Select all
#egtb #adaptive 750K 24M 192M 24M 48M #tbpath=d:\progra~1\arena\nalimov cache=32M ponder off # # (for use use with ponder on) # mode=tournament # # (Allows Crafty to try to win drawn games (according to Endgame Tables)) swindle on # # (default) learn 7 # # (default) book random 1 # bookw freq 0.7 bookw ratio 0.8 bookw eval 0.6 bookw learn 1 bookw cap 0.5 book width 4 # #(default = book on) book on # show book log=on # # (Increases Crafty's MaxThreads to 2 for a dual CPU computer ) mt=2 # # (Make Crafty not use cpu on opponents time) #smpnice=1 # # (Makes crafty use a lot more time on the first 8 moves out of book) timebook 80 8 #adaptive NPS a hash 45M hashp 16M exit
But if I remove the empty line (first line would become #egtb) it creates the log and game files twice.
and as that worked ok for logs,I started to suspect "log on" itself.
Crafy creates new game and log files when it encounters "log on".
You can see that if you put it one or more times in the rc file or type it on the commandline.
Best
Fonzy