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

Comparing ray/src/rt/rview.c (file contents):
Revision 1.19 by greg, Thu Jul 18 14:42:58 1991 UTC vs.
Revision 2.2 by greg, Mon Nov 25 10:11:01 1991 UTC

# Line 36 | Line 36 | double  shadcert = .25;                        /* shadow certainty */
36   int  directrelay = 0;                   /* number of source relays */
37   int  vspretest = 128;                   /* virtual source pretest density */
38   int  directinvis = 0;                   /* sources invisible? */
39 + double  srcsizerat = 0.;                /* maximum ratio source size/dist. */
40  
41   int  maxdepth = 4;                      /* maximum recursion depth */
42   double  minweight = 1e-2;               /* minimum ray weight */
# Line 62 | Line 63 | int  pdepth;                           /* image depth in current frame */
63  
64   static char  *reserve_mem = NULL;       /* pre-allocated reserve memory */
65  
66 < #define RESERVE_AMT     8192            /* amount of memory to reserve */
66 > #define RESERVE_AMT     32768           /* amount of memory to reserve */
67  
68   #define  CTRL(c)        ('c'-'@')
69  
# Line 222 | Line 223 | again:
223                  break;
224          case 'm':                               /* move camera */
225                  if (badcom("move"))
226 + #ifdef  MSTATS
227 +                {
228 +                        if (badcom("memory"))
229 +                                goto commerr;
230 +                        printmemstats(stderr);
231 +                        break;
232 +                }
233 + #else
234                          goto commerr;
235 + #endif
236                  getmove(args);
237                  break;
238          case 'r':                               /* rotate/repaint */
# Line 316 | Line 326 | rsample()                      /* sample the image */
326                                                  /* sample the image */
327          for (y = 0; /* y < ysiz */ ; y++) {
328                  for (x = 0; x < xsiz-1; x++) {
329 <                        if (dev->inpready)
329 >                        if (dev->inpready || errno == ENOMEM)
330                                  goto escape;
331                          /*
332                           * Test super-pixel to the right.
# Line 332 | Line 342 | rsample()                      /* sample the image */
342                  if (y >= ysiz-1)
343                          break;
344                  for (x = 0; x < xsiz; x++) {
345 <                        if (dev->inpready)
345 >                        if (dev->inpready || errno == ENOMEM)
346                                  goto escape;
347                          /*
348                           * Find super-pixel at this position in next row.
# Line 387 | Line 397 | int  pd;
397          if (p->kid == NULL) {                   /* subdivide */
398  
399                  if ((p->kid = newptree()) == NULL)
400 <                        return(growth);
400 >                        return(0);
401                  /*
402                   *  The following paint order can leave a black pixel
403                   *  when redraw() is called in (*dev->paintr)().

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines