ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/Development/ray/src/rt/rmain.c
(Generate patch)

Comparing ray/src/rt/rmain.c (file contents):
Revision 2.21 by greg, Fri Jan 22 09:51:16 1993 UTC vs.
Revision 2.22 by greg, Mon Jan 25 19:17:32 1993 UTC

# Line 66 | Line 66 | int  (*addobjnotify[])() = {ambnotify, NULL};
66   CUBE  thescene;                         /* our scene */
67   OBJECT  nsceneobjs;                     /* number of objects in our scene */
68  
69 + extern long  raynum, nrays;             /* ray counts */
70 +
71   extern int  imm_irrad;                  /* calculate immediate irradiance? */
72  
73   extern int  ralrm;                      /* seconds between reports */
# Line 574 | Line 576 | char  *argv[];
576                          while ((rval=fork()) == 0) {    /* keep on forkin' */
577                                  pflock(1);
578                                  pfhold();
579 +                                tstart = time(0);
580                          }
581                          if (rval < 0)
582                                  error(SYSTEM, "cannot fork child for persist function");
# Line 608 | Line 611 | runagain:
611          }
612          if (persist) {                  /* wait for a signal then go again */
613                  pfhold();
614 <                dupheader();
614 >                tstart = time(0);               /* reinitialize counters */
615 >                raynum = nrays = 0;
616 >                dupheader();                    /* reproduce header */
617                  goto runagain;
618          }
619   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)