904 |
|
op = addarg(op, "-ds .1 -dj .9"); |
905 |
|
else |
906 |
|
op = addarg(op, "-ds .2"); |
907 |
< |
op = addarg(op, "-dt .05 -dc .75 -dr 3 -ss 50 -st .01"); |
907 |
> |
op = addarg(op, "-dt .05 -dc .75 -dr 3 -ss 16 -st .01"); |
908 |
|
sprintf(op, " -ab %d", overture=vint(INDIRECT)+1); |
909 |
|
op += strlen(op); |
910 |
|
if (vdef(AMBFILE)) { |
1396 |
|
} else { |
1397 |
|
if (overture) { /* run overture calculation */ |
1398 |
|
sprintf(combuf, |
1399 |
< |
"%s%s %s%s -x 64 -y 64 -ps 1 %s > %s", |
1399 |
> |
"%s%s %s%s -x 64 -y 64 -ps 1 %s > %s", |
1400 |
|
c_rpict, rep, vw, opts, |
1401 |
|
oct1name, overfile); |
1402 |
< |
if (do_rpiece) |
1403 |
< |
while (next_process(1)) |
1404 |
< |
sleep(5); |
1405 |
< |
if (runcom(combuf)) { |
1406 |
< |
fprintf(stderr, |
1402 |
> |
if (!do_rpiece || !next_process(0)) { |
1403 |
> |
if (runcom(combuf)) { |
1404 |
> |
fprintf(stderr, |
1405 |
|
"%s: error in overture for view %s\n", |
1406 |
< |
progname, vs); |
1407 |
< |
quit(1); |
1408 |
< |
} |
1411 |
< |
if (do_rpiece) { |
1412 |
< |
finish_process(); |
1413 |
< |
wait_process(1); |
1414 |
< |
} |
1406 |
> |
progname, vs); |
1407 |
> |
quit(1); |
1408 |
> |
} |
1409 |
|
#ifndef NULL_DEVICE |
1410 |
< |
rmfile(overfile); |
1410 |
> |
rmfile(overfile); |
1411 |
|
#endif |
1412 |
+ |
} else if (do_rpiece) |
1413 |
+ |
sleep(20); |
1414 |
|
} |
1415 |
|
if (do_rpiece) { |
1416 |
|
sprintf(combuf, "%s -F %s %s%s %s %s%s%s -o %s %s", |
1566 |
|
child_pid = fork(); /* split process */ |
1567 |
|
if (child_pid == 0) { /* we're the child */ |
1568 |
|
children_running = -1; |
1569 |
+ |
nprocs = 1; |
1570 |
|
return(0); |
1571 |
|
} |
1572 |
|
if (child_pid > 0) { /* we're the parent */ |