--- ray/src/hd/rholo.c 1998/05/14 13:05:27 3.39 +++ ray/src/hd/rholo.c 1998/10/08 14:52:26 3.41 @@ -26,8 +26,6 @@ char *progname; /* our program name */ char *hdkfile; /* holodeck file name */ char froot[256]; /* root file name */ -int nowarn = 0; /* turn warnings off? */ - int ncprocs = 0; /* desired number of compute processes */ char *outdev = NULL; /* output device name */ @@ -55,6 +53,8 @@ int totqlen; /* maximum queue length when full */ char *sigerr[NSIG]; /* signal error messages */ +extern int nowarn; /* turn warnings off? */ + extern time_t time(); @@ -504,8 +504,15 @@ PACKET *pl; p->next = freepacks; /* push onto free list */ freepacks = p; } +#if MAXQTIME if (n2flush > 300/MAXQTIME*totqlen) { - hdflush(NULL); /* flush holodeck buffers */ +#else + if (n2flush > 50*totqlen) { +#endif + if (outdev == NULL) + hdflush(NULL); /* flush holodeck buffers */ + else + hdsync(NULL, 1); /* sync holodeck file */ n2flush = 0; } } @@ -550,14 +557,6 @@ register char *s; fflush(stderr); midline = 0; } -} - - -wputs(s) /* put warning string to stderr */ -char *s; -{ - if (!nowarn) - eputs(s); }