#include <revolution/gx.h>
void GXClearVCacheMetric( void );
None
None
The Graphics Processor (GP) can count many internal events that give detailed information on performance. This function clears the Vertex Cache performance counter by sending a special clear token via the graphics FIFO.
To set the metric for the counter call GXSetVCacheMetric. To read the counter value, call to GXReadVCacheMetric.
u32 chk, miss, stall;
GXSetVCacheMetric(GX_VC_ALL);
GXClearVCacheMetric();
// Draw Object(s)
// wait until object drawn
GXSetDrawSync(0xbeef);
while (0xbeef != GXReadDrawSync())
;
GXReadVCacheMetric(&chk, &miss, &stall);
OSReport("Vertex Cache miss rate: %f\n", (f32)miss/(f32)chk);
GXReadMemMetric
GXClearMemMetric
GXReadPixMetric
GXClearPixMetric
GXReadGPMetric
GXSetGPMetric
GXClearGPMetric
03/01/2006 Initial version