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.40 by gwlarson, Wed Jun 3 12:18:24 1998 UTC vs.
Revision 3.42 by gwlarson, Tue Oct 27 08:49:50 1998 UTC

# Line 420 | Line 420 | HDGRID *gp;
420   }
421  
422  
423 + int
424   headline(s)                     /* process information header line */
425   char    *s;
426   {
# Line 433 | Line 434 | char   *s;
434                                          HOLOFMT, hdkfile, FMTSTR, fmt);
435                          error(USER, errmsg);
436                  }
437 <                return;
437 >                return(0);
438          }
439          for (cp = s; *cp; cp++)         /* take off any comments */
440                  if (*cp == '#') {
# Line 441 | Line 442 | char   *s;
442                          break;
443                  }
444          setvariable(s, matchvar);       /* don't flag errors */
445 +        return(0);
446   }
447  
448  
# Line 504 | Line 506 | PACKET *pl;
506                  p->next = freepacks;            /* push onto free list */
507                  freepacks = p;
508          }
509 + #if MAXQTIME
510          if (n2flush > 300/MAXQTIME*totqlen) {
511 <                hdflush(NULL);                  /* flush holodeck buffers */
511 > #else
512 >        if (n2flush > 50*totqlen) {
513 > #endif
514 >                if (outdev == NULL)
515 >                        hdflush(NULL);          /* flush holodeck buffers */
516 >                else
517 >                        hdsync(NULL, 1);        /* sync holodeck file */
518                  n2flush = 0;
519          }
520   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines