# | Line 28 | Line 28 | ray_pinit( /* initialize ray-tracing processes */ | |
---|---|---|
28 | int nproc | |
29 | ) | |
30 | { | |
31 | – | if (nproc > 1) |
32 | – | error(WARNING, "Only single process supported"); |
31 | ray_pdone(0); | |
32 | ray_init(otnm); | |
33 | ray_popen(nproc); | |
# | Line 57 | Line 55 | ray_pqueue( /* queue a ray for computation */ | |
55 | { | |
56 | if (r == NULL) | |
57 | return(0); | |
58 | < | ray_value(r); |
58 | > | samplendx++; |
59 | > | rayvalue(r); |
60 | return(1); | |
61 | } | |
62 | ||
# | Line 70 | Line 69 | ray_presult( /* check for a completed ray */ | |
69 | { | |
70 | if (r == NULL) | |
71 | return(0); | |
72 | < | if (!poll & (ray_pnidle <= 0)) { |
73 | < | ray_value(&queued_ray); |
72 | > | if (ray_pnidle <= 0) { |
73 | > | samplendx++; |
74 | > | rayvalue(r); |
75 | *r = queued_ray; | |
76 | ray_pnidle = 1; | |
77 | return(1); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |