29 |
|
int qtMinNodesiz = 2; /* minimum node dimension (pixels) */ |
30 |
|
struct rleaves qtL; /* our pile of leaves */ |
31 |
|
|
32 |
+ |
int rayqleft = 0; /* rays left to queue before flush */ |
33 |
+ |
|
34 |
|
static int4 falleaves; /* our list of fallen leaves */ |
35 |
|
|
36 |
|
#define composted(li) (qtL.bl <= qtL.tl ? \ |
356 |
|
VCOPY(qtL.wp[li], p); |
357 |
|
qtL.wd[li] = encodedir(v); |
358 |
|
tmCvColrs(&qtL.brt[li], qtL.chr[li], c, 1); |
359 |
< |
if (putleaf(li, 1) && mapit) |
360 |
< |
tmMapPixels(qtL.rgb+li, qtL.brt+li, qtL.chr+li, 1); |
359 |
> |
if (putleaf(li, 1)) { |
360 |
> |
if (mapit) |
361 |
> |
tmMapPixels(qtL.rgb+li, qtL.brt+li, qtL.chr+li, 1); |
362 |
> |
if (--rayqleft == 0) |
363 |
> |
dev_flush(); /* flush output */ |
364 |
> |
} |
365 |
|
} |
366 |
|
|
367 |
|
|