--- ray/src/rt/raypwin.c 2008/02/09 00:17:51 2.2 +++ ray/src/rt/raypwin.c 2008/02/13 01:06:10 2.4 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: raypwin.c,v 2.2 2008/02/09 00:17:51 greg Exp $"; +static const char RCSid[] = "$Id: raypwin.c,v 2.4 2008/02/13 01:06:10 greg Exp $"; #endif /* * raypwin.c - interface for parallel rendering using Radiance (Windows ver) @@ -28,8 +28,6 @@ ray_pinit( /* initialize ray-tracing processes */ int nproc ) { - if (nproc > 1) - error(WARNING, "Only single process supported"); ray_pdone(0); ray_init(otnm); ray_popen(nproc); @@ -57,7 +55,8 @@ ray_pqueue( /* queue a ray for computation */ { if (r == NULL) return(0); - ray_value(r); + samplendx++; + rayvalue(r); return(1); } @@ -70,8 +69,9 @@ ray_presult( /* check for a completed ray */ { if (r == NULL) return(0); - if (!poll & (ray_pnidle <= 0)) { - ray_value(&queued_ray); + if (ray_pnidle <= 0) { + samplendx++; + rayvalue(r); *r = queued_ray; ray_pnidle = 1; return(1);