115 |
|
{ |
116 |
|
unsigned long vcount = (hresolu > 1) ? (unsigned long)hresolu*vresolu |
117 |
|
: vresolu; |
118 |
< |
long nextflush = hresolu; |
118 |
> |
long nextflush = (vresolu > 0) & (hresolu > 1) ? 0 : hresolu; |
119 |
|
FILE *fp; |
120 |
|
double d; |
121 |
|
FVECT orig, direc; |
160 |
|
|
161 |
|
d = normalize(direc); |
162 |
|
if (d == 0.0) { /* zero ==> flush */ |
163 |
– |
if (nproc > 1 && ray_fifo_flush() < 0) |
164 |
– |
error(USER, "lost children"); |
165 |
– |
bogusray(); |
163 |
|
if (--nextflush <= 0 || !vcount) { |
164 |
+ |
if (nproc > 1 && ray_fifo_flush() < 0) |
165 |
+ |
error(USER, "lost children"); |
166 |
+ |
bogusray(); |
167 |
|
fflush(stdout); |
168 |
< |
nextflush = hresolu; |
169 |
< |
} |
168 |
> |
nextflush = (vresolu > 0) & (hresolu > 1) ? 0 : |
169 |
> |
hresolu; |
170 |
> |
} else |
171 |
> |
bogusray(); |
172 |
|
} else { /* compute and print */ |
173 |
|
rtcompute(orig, direc, lim_dist ? d : 0.0); |
174 |
|
/* flush if time */ |