Rasty Allen (allen++at++ait.nrl.navy.mil)
Tue, 3 Dec 1996 10:08:39 -0500 (EST)
The application in question is used to view multiple terrain databases on
a single screen. All statistics are properly displayed in their respective
channels with the exception of the "Visible Geometry" and "CPU Stats".
The code used to switch between statistics modes in each channel is as follows:
for (n=0;n<ViewState->numdbs;n++)
{
if( init )
ViewState->statsarr[n] = pfGetChanFStats(ViewState->Chans[n]);
switch(ViewState->stats) {
case 0:
pfFStatsClass(ViewState->statsarr[n], PFSTATS_ALL, PFSTATS_OFF);
break;
case 1:
pfFStatsClass(ViewState->statsarr[n], PFSTATS_ALL, PFSTATS_OFF);
pfFStatsClass(ViewState->statsarr[n], PFFSTATS_ENPFTIMES, PFSTATS_ON);
pfFStatsClass(ViewState->statsarr[n], PFSTATSHW_ENCPU, PFSTATS_ON);
pfFStatsClass(ViewState->statsarr[n], PFSTATS_ENGFX, PFSTATS_ON);
break;
case 2:
pfFStatsClass(ViewState->statsarr[n], PFSTATS_ALL, PFSTATS_ON);
pfFStatsClass(ViewState->statsarr[n], PFFSTATS_ENPFTIMES, PFSTATS_ON);
PFSTATS_GFX_GEOM|PFSTATS_GFX_TSTRIP_LENGTHS|
PFSTATS_GFX_STATE|PFSTATS_GFX_XFORM, PFSTATS_SET);
pfFStatsClass(ViewState->statsarr[n], PFSTATSHW_ENGFXPIPE_FILL, PFSTATS_~
OFF); break;
case 3:
pfFStatsClass(ViewState->statsarr[n], PFSTATS_ALL, PFSTATS_OFF);
pfFStatsClass(ViewState->statsarr[n], PFFSTATS_ENPFTIMES, PFSTATS_ON);
pfFStatsClass(ViewState->statsarr[n], PFSTATSHW_ENGFXPIPE_FILL, PFSTATS_
ON);
break;
}
}
The visible geometry and cpu numbers are correctly shown in _one_ channel
but not in the other channels. The channels not showing these stats do
contain the vis. goemetry and cpu stat fields but show "0" instead of the
# of tris, etc.
I am able to switch between stat modes in all channels and the "Nodes Visible"
and all other statistics correctly correspond to their channels.
I get the following errors when switching between stat modes:
PF Warning/Usage: pfOpenStats(pfStats*) for 0x1836e680 ignored
Already have a different opened pfStats=0x1830d370 mask=0x10.
My question is: Why does the statistics display work for one channel
and not the others? Why do the statistics for the other channels work
except for Visible Geom. and CPU Stat numbers? What do I need to do to
correctly display all statistics from all channels?
v/r
Rasty Allen
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:54:05 PDT