Game Development Community

Metrics documentation?

by J. Donavan Stanley · in Torque Game Engine · 04/01/2003 (3:37 am) · 6 replies

Is there a reference available for the various metrics available from metrics.cs? I've not been able to turn up a decent reference in my searches.

#1
04/01/2003 (10:54 am)
Was there a particular metric you had a question on? If you look in metrics.cs, each metrics callback function has fairly well-named variables that it echoes. The one exception is metrics(video):

T_ - terrain
I_ - interior
TS_ - mesh
?_ - not one of the above

_T - triangle count
_P - primitive count (tristrip/trifan, etc)
#2
04/01/2003 (11:24 am)
There are 10 metrics modes:

Audio

OH.....numOpenHandles
OLH....numOpenLoopingHandles
AS.....numActiveStreams
NAS....numNullActiveStreams
LAS....numActiveLoopingStreams
LS.....numLoopingStreams
ILS....numInactiveLoopingStreams
CLS....numCulledLoopingStreams

Debug

NTL....numTexelsLoaded
TRP....texResidentPercentage
NP.....numPrimitives
NT.....numTexturesUsed
NO.....numObjectsRendered

Interior

NTL....numTexelsLoaded
TRP....texResidentPercentage
INP....numPrimitives
INT....numTexturesUsed
INO....numInteriors

FPS

FPS....frames per second
mspf...milliseconds per frame

terrain

L0.....levelZeroCount
FMC....fullMipCount
DTC....dynamicTextureCount
UNU....unusedTextureCount
STC....staticTextureCount
DTSU...textureSpaceUsed
STSU...staticTSU
FRB....FogRejections

time

texture

NTL....numTexelsLoaded
TRP....texResidentPercentage
TCM....textureCacheMisses

vehicle

R......retryCount
C......searchCount
P......polyCount
V......vertexCount

video

TC.....triCount0 + triCount1 + triCount2 + triCount3
PC.....primCount0 + primCount1 + primCount2 + primCount3
T_T....triCount1
T_P....primCount1
I_T....triCount2
I_P....primCount2
TS_T...triCount3
TS_P...primCount3
?_T....triCount0
?_P....primCount0

water

Tri#...waterTriCount
Pnt#...waterPointCount
Hz#....waterHazePointCount
#3
03/26/2007 (7:27 am)
Tried a few of these and I get either 0 or nothing for most of the values. This happens even in debug mode. What gives?
#4
03/26/2007 (8:07 am)
Yep I get the same thing. wassup with that?
#5
03/28/2007 (2:04 am)
Many of them are no longer used.
#6
06/12/2007 (4:32 am)
This resource contains a fix for this problem. Only steps 5 & 11 need to be performed to get the metrics working. GATHER_METRICS has been changed to TORQUE_GATHER_METRICS. www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=2565