ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/raypwin.c
(Generate patch)

Comparing ray/src/rt/raypwin.c (file contents):
Revision 2.4 by greg, Wed Feb 13 01:06:10 2008 UTC vs.
Revision 2.5 by greg, Thu Apr 17 18:48:09 2008 UTC

# Line 55 | Line 55 | ray_pqueue(                    /* queue a ray for computation */
55   {
56          if (r == NULL)
57                  return(0);
58 +        if (ray_pnidle <= 0) {
59 +                RAY     new_ray = *r;
60 +                *r = queued_ray;
61 +                queued_ray = new_ray;
62 +        }
63          samplendx++;
64          rayvalue(r);
65          return(1);
# Line 70 | Line 75 | ray_presult(           /* check for a completed ray */
75          if (r == NULL)
76                  return(0);
77          if (ray_pnidle <= 0) {
78 +                *r = queued_ray;
79                  samplendx++;
80                  rayvalue(r);
75                *r = queued_ray;
81                  ray_pnidle = 1;
82                  return(1);
83          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines