--- ray/src/rt/raypcalls.c 2020/06/15 15:44:03 2.33 +++ ray/src/rt/raypcalls.c 2020/06/16 17:58:11 2.34 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: raypcalls.c,v 2.33 2020/06/15 15:44:03 greg Exp $"; +static const char RCSid[] = "$Id: raypcalls.c,v 2.34 2020/06/16 17:58:11 greg Exp $"; #endif /* * raypcalls.c - interface for parallel rendering using Radiance @@ -162,7 +162,6 @@ extern char *shm_boundary; /* boundary of shared memo int ray_pnprocs = 0; /* number of child processes */ int ray_pnidle = 0; /* number of idle children */ -int ray_pnbatch = 0; /* throughput over responsiveness? */ static struct child_proc { RT_PID pid; /* child process id */ @@ -213,11 +212,7 @@ ray_pflush(void) /* send queued rays to idle childre for (i = ray_pnprocs; nc && i--; ) { if (r_proc[i].npending > 0) continue; /* child looks busy */ - n = r_send_next - sfirst; - if (ray_pnbatch) - nc--; /* maximize bundling for batch calc */ - else - n /= nc--; /* distribute work for interactivity */ + n = (r_send_next - sfirst) / nc--; if (!n) continue; /* smuggle set size in crtype */