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

Comparing ray/src/rt/rv3.c (file contents):
Revision 2.3 by greg, Fri Oct 2 16:19:56 1992 UTC vs.
Revision 2.5 by greg, Thu Aug 5 13:05:01 1993 UTC

# Line 19 | Line 19 | static char SCCSid[] = "$SunId$ LBL";
19   #include  "random.h"
20  
21   #ifndef WFLUSH
22 < #define WFLUSH          30              /* flush after this many rays */
22 > #ifdef SPEED
23 > #define WFLUSH          (5*SPEED)
24 > #else
25 > #define WFLUSH          100             /* flush after this many rays */
26   #endif
27 + #endif
28  
29   #ifdef  SMLFLT
30   #define  sscanvec(s,v)  (sscanf(s,"%f %f %f",v,v+1,v+2)==3)
# Line 143 | Line 147 | paint(p, xmin, ymin, xmax, ymax)       /* compute and paint
147   register PNODE  *p;
148   int  xmin, ymin, xmax, ymax;
149   {
150 <        extern long  nrays;
151 <        static long  lastflush = 0;
150 >        extern unsigned long  nrays;
151 >        static unsigned long  lastflush = 0;
152          static RAY  thisray;
153          double  h, v;
154  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines