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

Comparing ray/src/rt/rayfifo.c (file contents):
Revision 2.5 by greg, Thu Apr 26 18:09:55 2018 UTC vs.
Revision 2.6 by greg, Wed May 2 20:42:21 2018 UTC

# Line 59 | Line 59 | ray_fifo_growbuf(void) /* double buffer size (or set t
59          int     i;
60  
61          if (r_fifo_buf == NULL)
62 <                r_fifo_len = 32;
62 >                r_fifo_len = 1<<5;              /* must be power of two */
63          else
64 <                r_fifo_len = r_fifo_len*3/2;
64 >                r_fifo_len <<= 1;
65                                                  /* allocate new */
66          r_fifo_buf = (RAY *)calloc(r_fifo_len, sizeof(RAY));
67          if (r_fifo_buf == NULL)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines