Author: Paul
Date: 13:43:40 04/02/01
Go up one level in this thread
On April 02, 2001 at 16:13:39, Robert Hyatt wrote: >On April 02, 2001 at 16:05:36, Paul wrote: >>But I don't think you can change tb cache size "on the fly", if that's what >>you're intentions are. You have to reinit the tables after that, and that takes >>a long time. So it isn't possible during game play. But maybe I'm mistaken ... >For pawns you could do it. It would mean taking each pawn hash entry and >relocating it to the right place. And about 1/2 the entries would have to be >trashed if you cut the table size by 1/2... The real transposition table would >be a bigger problem. But then there is no reason to reduce it anyway since the >EGTB results should end up in there, and _that_ is where we really want them >anyway since that is the fastest thing to probe. Yes, I agree about changing hash sizes, that's possible. But my question was: is it possible to change tablebase cache size during a game without reinitialising the table bases? If I change the tb cache size via my program's GUI, IInitializeTb is called again, and that one takes a long time coz it goes through all 290 files when using 5 men tb's. I vaguely remember that you have to do that. Can I leave that call to IInitializeTb out and just change the cache size like this? : delete [] EtbCache; // free old etb cache space EtbCache = new char[1024*1024*EtbSize]; // alloc new space for etb cache FTbSetCacheSize(EtbCache, 1024*1024*EtbSize); // set cache size That would be a lot quicker. :) Paul
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.