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

Comparing ray/src/hd/rholo.c (file contents):
Revision 3.45 by gwlarson, Tue Jan 5 11:34:52 1999 UTC vs.
Revision 3.46 by gwlarson, Thu Jan 7 22:05:34 1999 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1998 Silicon Graphics, Inc. */
1 > /* Copyright (c) 1999 Silicon Graphics, Inc. */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ SGI";
# Line 14 | Line 14 | static char SCCSid[] = "$SunId$ SGI";
14   #include <sys/types.h>
15   #include <sys/stat.h>
16  
17 + #ifndef RTFLUSH
18 + #define RTFLUSH         0               /* flush one at a time in batch */
19 + #endif
20   #ifndef FRAGWARN
21   #define FRAGWARN        20              /* fragmentation for warning (%) */
22   #endif
# Line 150 | Line 153 | int  signo;
153          if (gotsig++)                   /* two signals and we're gone! */
154                  _exit(signo);
155  
156 <        alarm(120);                     /* allow 2 minutes to clean up */
156 >        alarm(180);                     /* allow 3 minutes to clean up */
157          signal(SIGALRM, SIG_DFL);       /* make certain we do die */
158          eputs("signal - ");
159          eputs(sigerr[signo]);
# Line 511 | Line 514 | PACKET *pl;
514                                  p->nr*sizeof(RAYVAL));
515                          if (outdev != NULL)     /* display it */
516                                  disp_packet((PACKHEAD *)p);
517 <                        if (hdcachesize <= 0)   /* manual flushing */
517 >                        if (hdcachesize <= 0) {
518 > #if RTFLUSH
519 >                                if (outdev == NULL)
520 >                                        hdfreebeam(hdlist[p->hd], p->bi);
521 > #endif
522                                  n2flush++;
523 +                        }
524                          nraysdone += p->nr;
525                          npacksdone++;
526                          p->nr = 0;
# Line 525 | Line 533 | PACKET *pl;
533   #else
534          if (n2flush > 50*totqlen) {
535   #endif
536 <                if (outdev == NULL)
537 <                        hdflush(NULL);          /* flush holodeck buffers */
536 > #if RTFLUSH
537 >                hdsync(NULL, outdev!=NULL);     /* sync beams & directories */
538 > #else
539 >                if (outdev != NULL)
540 >                        hdsync(NULL, 1);
541                  else
542 <                        hdsync(NULL, 1);        /* sync holodeck file */
542 >                        hdflush(NULL);
543 > #endif
544                  n2flush = 0;
545          }
546   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines