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

Comparing ray/src/rt/rv3.c (file contents):
Revision 2.39 by greg, Wed May 20 09:36:48 2015 UTC vs.
Revision 2.40 by greg, Tue May 26 10:00:47 2015 UTC

# Line 224 | Line 224 | paint(                 /* compute and paint a rectangle */
224                  } else if (ambounce == 0)
225                          flushintvl = ray_pnprocs*WFLUSH;
226                  else if (niflush < WFLUSH)
227 <                        flushintvl = ray_pnprocs*niflush/(ambounce+1);
227 >                        flushintvl = ray_pnprocs*niflush/(ambounce*(ambounce>0)+1);
228                  else
229 <                        flushintvl = ray_pnprocs*WFLUSH/(ambounce+1);
229 >                        flushintvl = ray_pnprocs*WFLUSH/(ambounce*(ambounce>0)+1);
230                  if (lastflush > counter)
231                          lastflush = 0;          /* counter wrapped */
232  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines