Re: Problem with statistics collection

New Message Reply Date view Thread view Subject view Author view

Marcin Romaszewicz (marcin++at++asmodean.engr.sgi.com)
Wed, 4 Nov 1998 10:49:58 -0800 (PST)


>
>
> You aren't missing anything. It looks like we forgot to case on the
> PFSTATSVAL_GFX_GEOM_TSTRIPSTRIS flag when reading back stats. For now,
> the workaround is to read back the entire pfStatsValGeom structure which
> contains the statistic you are looking for.
>
> struct pfStatsValGeom geom;
> fsp->query(PFSTATSVAL_GFX_GEOM | PFFSTATS_BUF_PREV, &geom,
> sizeof(pfStatsValGeom));
> ntri = geom.tris;
> tstriptri = geom.trisPerTStrip;

Oops. Make that last line:

tstriptri = geom.tStripTris;

>
> >
> > Hi,
> >
> > I am trying to collect some performance statistics on our
> > databases using the Performer 2.2 pfFrameStats functions.
> >
> > I define a class pointer, fsp using getFStats()
> >
> > This call returns a correct value:
> >
> > fsp->query(PFSTATSVAL_GFX_GEOM_TRIS |
> > PFFSTATS_BUF_PREV, &ntri, sizeof(float));
> >
> >
> > This call (immediately after the above call):
> >
> > fsp->query(PFSTATSVAL_GFX_GEOM_TSTRIPSTRIS |
> > PFFSTATS_BUF_PREV, &tstriptri, sizeof(float));
> >
> > returns the error message:
> >
> > 5022 PF Warning/Usage: pfStats::query() - unknown
> > query token 0x9b8 - no data written.
> >
> > What am I missing?
> >
> > Dave Findley
> > Boeing Flight Simulation - St. Louis
> >
> > =======================================================================
> > List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> > Submissions: info-performer++at++sgi.com
> > Admin. requests: info-performer-request++at++sgi.com
> >
>
> =======================================================================
> 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 Wed Nov 04 1998 - 10:50:01 PST

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