# | 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 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |