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 2.8 by greg, Mon Sep 21 12:08:00 1992 UTC vs.
Revision 2.10 by greg, Wed Feb 10 14:03:01 1993 UTC

# Line 35 | Line 35 | double shadthresh = .1;                /* shadow threshold */
35   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? */
38 > int  directvis = 1;                     /* sources visible? */
39   double  srcsizerat = 0.;                /* maximum ratio source size/dist. */
40  
41   double  specthresh = .3;                /* specular sampling threshold */
# Line 74 | Line 74 | static char  *reserve_mem = NULL;      /* pre-allocated res
74   quit(code)                      /* quit program */
75   int  code;
76   {
77 + #ifdef MSTATS
78 +        if (code == 2 && errno == ENOMEM)
79 +                printmemstats(stderr);
80 + #endif
81          devclose();
82          exit(code);
83   }
# Line 185 | Line 189 | again:
189          else *++args = '\0';
190          
191          switch (inpbuf[0]) {
192 <        case 'f':                               /* new frame */
193 <                if (badcom("frame"))
194 <                        goto commerr;
192 >        case 'f':                               /* new frame (or free mem.) */
193 >                if (badcom("frame")) {
194 >                        if (badcom("free"))
195 >                                goto commerr;
196 >                        free_objmem();
197 >                        break;
198 >                }
199                  getframe(args);
200                  break;
201          case 'v':                               /* view */
# Line 225 | Line 233 | again:
233                          goto commerr;
234                  getaim(args);
235                  break;
236 <        case 'm':                               /* move camera */
236 >        case 'm':                               /* move camera (or memstats) */
237                  if (badcom("move"))
238   #ifdef  MSTATS
239                  {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines