ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/rxcmain.cpp
(Generate patch)

Comparing ray/src/rt/rxcmain.cpp (file contents):
Revision 2.12 by greg, Mon Dec 23 18:14:20 2024 UTC vs.
Revision 2.15 by greg, Thu Jan 2 20:19:48 2025 UTC

# Line 47 | Line 47 | printdefaults(void)                    /* print default values to stdou
47          if (myRCmanager.HasFlag(RTimmIrrad))
48                  printf("-I+\t\t\t\t# immediate irradiance on\n");
49          printf("-n %-2d\t\t\t\t# number of rendering processes\n", nproc);
50 <        if (myRCmanager.xres > 0)
51 <                printf("-x %-9d\t\t\t# x resolution\n", myRCmanager.xres);
50 >        printf("-x %-9d\t\t\t# x resolution\n", myRCmanager.xres);
51          printf("-y %-9d\t\t\t# y resolution\n", myRCmanager.yres);
52          printf(myRCmanager.HasFlag(RTlimDist) ?
53                          "-ld+\t\t\t\t# limit distance on\n" :
# Line 56 | Line 55 | printdefaults(void)                    /* print default values to stdou
55          printf("-f%c%c\t\t\t\t# format input/output = %s/%s\n",
56                          inpfmt, outfmt, formstr(inpfmt), formstr(outfmt));
57          if (report_intvl > 0)
58 <                printf("-t %-9d\t\t\t#  time between reports\n", report_intvl);
58 >                printf("-t %-9d\t\t\t# time between reports\n", report_intvl);
59          printf(erract[WARNING].pf != NULL ?
60                          "-w+\t\t\t\t# warning messages on\n" :
61                          "-w-\t\t\t\t# warning messages off\n");
# Line 75 | Line 74 | onsig(                         /* fatal signal */
74                  _exit(signo);
75  
76   #ifdef SIGALRM
77 <        alarm(180);                     /* allow 3 minutes to clean up */
77 >        alarm(600);                     /* allow 10 minutes to clean up */
78          signal(SIGALRM, SIG_DFL);       /* make certain we do die */
79   #endif
80          eputs("signal - ");
# Line 509 | Line 508 | rxcontrib(const int rstart)
508                  r++;
509                  if (report_intvl <= 0)
510                          continue;
511 <                tnow = time(0);         // time to report progress?
513 <                if (r == totRows)       // finished?
511 >                if (r == totRows)       // need to finish up?
512                          myRCmanager.SetThreadCount(1);
513 <                else if (tnow < last_report+report_intvl)
513 >                tnow = time(0);
514 >                if ((r < totRows) & (tnow < last_report+report_intvl))
515                          continue;
516                  sprintf(errmsg, "%.2f%% done after %.3f hours\n",
517                                  100.*myRCmanager.GetRowFinished()/totRows,
# Line 568 | Line 567 | quit(
567          int  code
568   )
569   {
570 <        if (!code && myRCmanager.Ready())       // clean up on normal exit
572 <                code = myRCmanager.Cleanup();
570 >        myRCmanager.FlushQueue();       // leave nothing in queue
571  
572          exit(code);
573   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines