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.39 by gwlarson, Thu May 14 13:05:27 1998 UTC vs.
Revision 3.41 by gwlarson, Thu Oct 8 14:52:26 1998 UTC

# Line 26 | Line 26 | char   *progname;              /* our program name */
26   char    *hdkfile;               /* holodeck file name */
27   char    froot[256];             /* root file name */
28  
29 int     nowarn = 0;             /* turn warnings off? */
30
29   int     ncprocs = 0;            /* desired number of compute processes */
30  
31   char    *outdev = NULL;         /* output device name */
# Line 55 | Line 53 | int    totqlen;                /* maximum queue length when full */
53  
54   char  *sigerr[NSIG];            /* signal error messages */
55  
56 + extern int      nowarn;         /* turn warnings off? */
57 +
58   extern time_t   time();
59  
60  
# Line 504 | Line 504 | PACKET *pl;
504                  p->next = freepacks;            /* push onto free list */
505                  freepacks = p;
506          }
507 + #if MAXQTIME
508          if (n2flush > 300/MAXQTIME*totqlen) {
509 <                hdflush(NULL);                  /* flush holodeck buffers */
509 > #else
510 >        if (n2flush > 50*totqlen) {
511 > #endif
512 >                if (outdev == NULL)
513 >                        hdflush(NULL);          /* flush holodeck buffers */
514 >                else
515 >                        hdsync(NULL, 1);        /* sync holodeck file */
516                  n2flush = 0;
517          }
518   }
# Line 550 | Line 557 | register char  *s;
557                  fflush(stderr);
558                  midline = 0;
559          }
553 }
554
555
556 wputs(s)                        /* put warning string to stderr */
557 char    *s;
558 {
559        if (!nowarn)
560                eputs(s);
560   }
561  
562  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines