GXClearVCacheMetric

Syntax

#include <revolution/gx.h>

void GXClearVCacheMetric( void );

Arguments

None.

Return Values

None.

Description

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 the GXSetVCacheMetric function. To read the counter value, call the GXReadVCacheMetric function.

Example

u32 chk, miss, stall;

GXSetVCacheMetric(GX_VC_ALL);
GXClearVCacheMetric();

// Render Object(s)
// wait until objects are rendered
GXSetDrawSync(0xbeef);
while (0xbeef != GXReadDrawSync())
    ;

GXReadVCacheMetric(&chk, &miss, &stall);

OSReport("Vertex Cache miss rate:  %f\n", (f32)miss/(f32)chk);

See Also

GXReadMemMetric, GXClearMemMetric, GXReadPixMetric, GXClearPixMetric, GXReadGPMetric, GXSetGPMetric, GXClearGPMetric

Revision History

2006/03/01 Initial version.


CONFIDENTIAL