From: Dorosky, Christopher G (christopher.g.dorosky++at++lmco.com)
Date: 05/14/2001 06:40:21
I was hoping someone could give me insight into a few specific issues on the
stats...
With the below Channel draw callback, I see two strange things.
1. PFSTATSVAL_GFXPIPE_TIMES_PERCENTAGE is defined in the .h file, but comes
up during runtime as unknown token. Why?
2. I got the entire stat's structure, but st.btlnck.time.total is always
0.0. Other queries, such as number of primitives, come back ok. Is there a
certain time/place to query the btlnck structure?
> static void DrawChannel (pfChannel *cahnnel, void *)
> {
> pfStatsValues st;
> float ftmp[2];
> static pfFrameStats *fstats;
> static int do_once=1;
>
> if(do_once)
> {
> fstats = channel->getFStats();
> fstats->setClass(PFSTATS_ALL, PFSTATS_ON);
> fstats->setClassMode(PFSTATS_CLASSES, PFSTATS_ALL, PFSTATS_ON);
> do_once=0;
> }
>
> fstats->query(PFSTATSVAL_ALL, &st, sizeof(st));
> // that should get me the entire stats structure
> fstats->query(PFSTATSVAL_GFXPIPE_TIMES_PERCENTAGE_FILL, ftmp,
> sizeof(ftmp));
> //this comes up as unknown token
> printf("fill time is %f\n", st.btlnck.time.total);
> printf("Unknown value if %f\n", ftmp[0]);
>
> channel->clear();
> pfDraw();
>
> //fstats->queries to PFSTATSVAL_GFX_GEOM_PFPRIMS_TRIS, ftmp,
> sizeof(float)) comes up ok
>
> channel->drawStats();
> }
>
Thank you.
> Christopher Dorosky
> Lead Electronic Systems Engineer - Real Time Simulation
> Lockheed Martin Missiles and Fire Control - Dallas
> christopher.g.dorosky++at++lmco.com
> 972-603-2349
>
This archive was generated by hypermail 2b29 : Mon May 14 2001 - 06:45:57 PDT