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

Comparing ray/src/hd/rholo3.c (file contents):
Revision 3.44 by greg, Fri Oct 5 19:19:16 2018 UTC vs.
Revision 3.45 by greg, Tue Jan 21 22:30:01 2025 UTC

# Line 274 | Line 274 | beamvolume(    /* compute approximate volume of a beam */
274   static void
275   ambient_list(void)                      /* compute ambient beam list */
276   {
277 <        int32   wtotal, minrt;
277 >        unsigned long   wtotal;
278 >        int32   minrt;
279          double  frac;
280          int     i;
281          int     j, k;
# Line 304 | Line 305 | ambient_list(void)                     /* compute ambient beam list */
305                  frac = 1024.*1024.*vflt(DISKSPACE) / (wtotal*sizeof(RAYVAL));
306          else
307                  frac = 1024.*1024.*MAXADISK / (wtotal*sizeof(RAYVAL));
308 <        minrt = .02*frac*wtotal/complen + .5;   /* heuristic mimimum */
308 >        minrt = .02*frac*wtotal/complen + 1.1;  /* heuristic mimimum */
309          if (minrt > RPACKSIZ)
310                  minrt = RPACKSIZ;
311          for (k = complen; k--; )

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines