| View previous topic :: View next topic |
| Author |
Message |
Lucas Braesch

Joined: 31 May 2010 Posts: 1824
|
Post subject: Re: RedQueen 1.1.1 on Mac OS X Posted: Sun Apr 01, 2012 11:51 am |
|
|
Hi Ben-Hur,
I tried my patch, and even a much simpler version for debug purposes:
| Code: |
const int64_t SearchAgent::getTimeToSearch(const int64_t usedTime) {
if (getSearchMode()==SearchAgent::SEARCH_MOVETIME) {
return getMoveTime();
}
int64_t time = board.getSideToMove()==WHITE? getWhiteTime():getBlackTime();
int64_t incTime = board.getSideToMove()==WHITE?getWhiteIncrement():getBlackIncrement();
int64_t result = std::min(time-25, time/40 + incTime);
std::cout << "time allocated " << result << std::endl;
return result;
}
|
Still time losses! The time bug is more deeply rooted in your search code. Example:
| Code: |
position startpos moves e2e4
go wtime 1 winc 1 btime 1000 binc 1000
time allocated 975
...
info depth 15 score cp -36 time 1254 nodes 843776 nps 843776 pv e7e5 g1f3 b8c6 b1c3 f8c5 f1b5 a7a6 b5c6 d7c6
info nodes 843776 time 1254 nps 843776 hashfull 280
bestmove e7e5 ponder g1f3
|
The time constraint (975 ms) was not respected by the search, by quite a large margin! You should test the time condition every X nodes (eg. X = 1024 should be fine) including QS nodes. |
|
| Back to top |
|
 |
|
| Subject |
Author |
Date/Time |
RedQueen 1.1.1 on Mac OS X |
Robert Purves |
Fri Mar 16, 2012 1:29 am |
Re: RedQueen 1.1.1 on Mac OS X |
Ben-Hur Carlos Langoni |
Fri Mar 16, 2012 7:53 pm |
Re: RedQueen 1.1.1 on Mac OS X |
Lucas Braesch |
Sat Mar 17, 2012 5:57 am |
Re: RedQueen 1.1.1 on Mac OS X |
Ben-Hur Carlos Langoni |
Sat Mar 17, 2012 12:43 pm |
Re: RedQueen 1.1.1 on Mac OS X |
Lucas Braesch |
Sat Mar 17, 2012 6:01 pm |
Re: RedQueen 1.1.1 on Mac OS X |
Ben-Hur Carlos Langoni |
Sat Mar 17, 2012 6:19 pm |
Re: RedQueen 1.1.1 on Mac OS X |
Lucas Braesch |
Sun Mar 25, 2012 4:01 am |
Re: RedQueen 1.1.1 on Mac OS X |
Ben-Hur Carlos Langoni |
Mon Mar 26, 2012 2:30 pm |
Re: RedQueen 1.1.1 on Mac OS X |
Lucas Braesch |
Tue Mar 27, 2012 5:21 am |
Re: RedQueen 1.1.1 on Mac OS X |
Ben-Hur Carlos Langoni |
Tue Mar 27, 2012 1:06 pm |
Re: RedQueen 1.1.1 on Mac OS X |
Lucas Braesch |
Sun Apr 01, 2012 11:51 am |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|