--- ray/src/rt/rv3.c 1992/10/02 16:19:56 2.3 +++ ray/src/rt/rv3.c 1993/08/05 13:05:01 2.5 @@ -19,8 +19,12 @@ static char SCCSid[] = "$SunId$ LBL"; #include "random.h" #ifndef WFLUSH -#define WFLUSH 30 /* flush after this many rays */ +#ifdef SPEED +#define WFLUSH (5*SPEED) +#else +#define WFLUSH 100 /* flush after this many rays */ #endif +#endif #ifdef SMLFLT #define sscanvec(s,v) (sscanf(s,"%f %f %f",v,v+1,v+2)==3) @@ -143,8 +147,8 @@ paint(p, xmin, ymin, xmax, ymax) /* compute and paint register PNODE *p; int xmin, ymin, xmax, ymax; { - extern long nrays; - static long lastflush = 0; + extern unsigned long nrays; + static unsigned long lastflush = 0; static RAY thisray; double h, v;