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.12 by gregl, Thu Nov 20 11:39:24 1997 UTC vs.
Revision 3.13 by gregl, Wed Nov 26 20:13:55 1997 UTC

# Line 463 | Line 463 | loadholo()                     /* start loading a holodeck from fname */
463   done_packets(pl)                /* handle finished packets */
464   PACKET  *pl;
465   {
466 <        static int      nunflushed = 0;
466 >        static int      n2flush = 0;
467          register PACKET *p;
468  
469          while (pl != NULL) {
# Line 474 | Line 474 | PACKET *pl;
474                                  p->nr*sizeof(RAYVAL));
475                          if (outdev != NULL)     /* display it */
476                                  disp_packet((PACKHEAD *)p);
477 <                        else
478 <                                nunflushed += p->nr;
477 >                        if (hdcachesize <= 0)   /* manual flushing */
478 >                                n2flush += p->nr;
479                          nraysdone += p->nr;
480                          npacksdone++;
481                  }
# Line 483 | Line 483 | PACKET *pl;
483                  p->next = freepacks;
484                  freepacks = p;
485          }
486 <        if (nunflushed >= 256*RPACKSIZ) {
486 >        if (n2flush > 512*RPACKSIZ*ncprocs) {
487                  hdflush(NULL);                  /* flush holodeck buffers */
488 <                nunflushed = 0;
488 >                n2flush = 0;
489          }
490   }
491  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines