🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.chess
Article #4622

Patches to pl74; improving the timing code

#4622
From: Kong Sian
Date: Sat, 04 Mar 1995 01:44
42 lines
1951 bytes
Hi.  Here is a small patch to "improve" the timing logic for
pl74.  Apparently I was giving it way too much time and a couple
of versions which ran on ICS was suddenly losing on time.  Sorry
for the problems.

-- 
Chua Kong Sian   <kongsian@nsrc.nus.sg>
National Supercomputing Research Centre
Singapore



*** ../src/search.c	Wed Feb 22 08:46:50 1995
--- search.c	Sat Mar  4 09:41:41 1995
***************
*** 269,275 ****
  	      /* calculate avg time per move remaining */
  
  	      ResponseTime = TimeControl.clock[side] / TimeControl.moves[side];
! 	      ResponseTime += TCadd * 3 / 4;
  	      TCleft = (int) ResponseTime / 5;
  	      if (TimeControl.moves[side] < 5)
  		TCcount = MAXTCCOUNTX - 10;
--- 269,276 ----
  	      /* calculate avg time per move remaining */
  
  	      ResponseTime = TimeControl.clock[side] / TimeControl.moves[side];
! 	      ResponseTime = ResponseTime * 2 / 3;
! 	      ResponseTime += TCadd / 2;
  	      TCleft = (int) ResponseTime / 5;
  	      if (TimeControl.moves[side] < 5)
  		TCcount = MAXTCCOUNTX - 10;
***************
*** 1245,1251 ****
  #endif
  	      ElapsedTime (2);
  	      TCcount++;
- 	      if (et > ResponseTime) flag.timeout = true;
  	      if (!background && Sdepth > 2)
  		{
  		  if (best < alpha)
--- 1246,1251 ----
Technical Details
Message-ID: <9503040144.AA14256@aba.nsrc.nus.sg>
Path: arc1-ca.pugleaf.net!nntp.gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!nsrc.nus.SG!kongsian

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d71d,2c06615adee53d9e,start
X-Google-Attributes: gid10d71d,public
X-Google-ArrivalTime: 1995-03-03 17:44:15 PST
Path: arc1-ca.pugleaf.net!nntp.gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!nsrc.nus.SG!kongsian
From: kongsian@nsrc.nus.SG (Kong Sian)
Newsgroups: gnu.chess
Subject: Patches to pl74; improving the timing code
Date: 3 Mar 1995 20:44:15 -0500
Organization: GNUs Not Usenet
Lines: 47
Sender: daemon@cis.ohio-state.edu
Distribution: gnu
Message-ID: <9503040144.AA14256@aba.nsrc.nus.sg>