Re: Framerate on iR, Part II...

New Message Reply Date view Thread view Subject view Author view

Don Hatch (hatch++at++hell.engr.sgi.com)
Wed, 10 Sep 1997 17:14:58 -0700


On Sep 10, 1:37pm, Jan Barglowski wrote:
> Subject: Framerate on iR, Part II...
> Thanks to all who've replied, and sorry I haven't summarized sooner!
>
> I still have the ~2 second "glitch", and here's what I've done so far:
>
> - Stopped displaying my xclock (thanks Angus)
>
> - Added the NOINTR directive in my irix.sm (thanks Dr. Colin) as shown
> in the FAQ. I now have protected processors 9, 10, and 11 from
> broadcast interrupts and lock them in my app.
>
> - I run a "desktop" with three "desks", some with nice picture backgrounds.
> Haven't had the chance to disable this, but the desk I run the app on
> has no background defined. Also, the framebuffer is 2560x1024 across
> 2 monitors so I can debug if necessary. (printf's off when testing
> framerate, however). Haven't compare it to a 1280x1024 framebuffer
> yet.
>

Did you try my suggestion?
Here's my reply again in case it didn't make it the first time...

On Sep 5, 8:48am, Don Hatch wrote:
> Subject: Re: Framerate on iR...
> On Sep 3, 3:12pm, Jan Barglowski wrote:
> >
> > I'm trying to optimize my framerate. At 30Hz PFPHASE_LOCK my app
> > runs well, but about every 2 seconds the stats display "jumps"
> > and I consistently get 2-4 misses shown in the stats window. For
> > the app/cull/draw misses, there are zero misses shown.
> >
> > Now the fun part. I run the app at 60Hz PFPHASE_LOCK and I get
> > the exact same symptoms: 2-4 misses and none shown for each of the
> > processes. Thinking it was my program, I then ran "perfly esprit.flt"
> > and got the same statistics.
> >
> > Setup: 12cpu iR, IRIX 6.2, Performer 2.1, running programs as root
> > with non-degrading priorities and locked-down CPUs. My app can easily
> > run 60Hz (well, I disabled preFrame() and postFrame() for these tests ;-)
>
> Others have seen the every-two-seconds jump as well.
> It turns out it was due to frame stats collection, which is done
> be default every 2 seconds.
>
> If you are working from perfly source,
> you can change this by looking for the lines:
> pfFStatsAttr(fsp, PFFSTATS_UPDATE_SECS, 2.0f);
> first = 0;
> and changing them to:
> pfFStatsAttr(fsp, PFFSTATS_UPDATE_SECS, whatever_you_want);
> if (i == ViewState->numChans-1)
> first = 0; /* did it on all the channels once */
> (The added "if" should have been there all along;
> without it, this will only happen on the first channel,
> which is wrong when running with multiple channels;
> this will be fixed in Performer 2.2).
>
> Don
>
> --
> Don Hatch hatch++at++sgi.com (415) 933-5150 Silicon Graphics, Inc.
>-- End of excerpt from Don Hatch

-- 
Don Hatch  hatch++at++sgi.com  (415) 933-5150  Silicon Graphics, Inc.
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer/
            Submissions:  info-performer++at++sgi.com
        Admin. requests:  info-performer-request++at++sgi.com

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:54 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.