1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=utf-8">
6<META name="GENERATOR" content="Microsoft FrontPage 5.0">
7<META http-equiv="Content-Style-Type" content="text/css">
8<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
9<title>GXClearVCacheMetric</title>
10</head>
11
12<body>
13
14<h1 align="left">GXClearVCacheMetric</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/gx.h&gt;
19
20void GXClearVCacheMetric( void );
21</pre></dd></dl>
22
23<h2>Arguments</h2>
24<p>None.</p>
25
26<h2>Return Values</h2>
27<p>None.</p>
28
29<H2>Description</H2>
30<P>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.</P>
31<P>To set the metric for the counter, call the <A href="GXSetVCacheMetric.html"><CODE>GXSetVCacheMetric</CODE></A> function. To read the counter value, call the <A href="GXReadVCacheMetric.html"><CODE>GXReadVCacheMetric</CODE></A> function.</P>
32
33<H3>Example</H3>
34<DL><DD><CODE>u32 chk, miss, stall;<BR> <BR> GXSetVCacheMetric(GX_VC_ALL);<BR> GXClearVCacheMetric();<BR> <BR> // Render Object(s)</CODE></DD></DL>
35<DL><DD><CODE>// wait until object drawn<BR> GXSetDrawSync(0xbeef);<BR> while (0xbeef != GXReadDrawSync())<BR> ;<BR> <BR> GXReadVCacheMetric(&amp;chk, &amp;miss, &amp;stall);<BR> <BR> OSReport(&quot;Vertex Cache miss rate:%f\n&quot;, (f32)miss/(f32)chk);</CODE></DD></DL>
36
37<h2>See Also</h2>
38<P class="reference">
39<a href="GXReadMemMetric.html">GXReadMemMetric</a><BR><a href="GXClearMemMetric.html">GXClearMemMetric</a><BR><a href="GXReadPixMetric.html">GXReadPixMetric</a><BR><a href="GXClearPixMetric.html">GXClearPixMetric</a><BR><a href="GXReadGPMetric.html">GXReadGPMetric</a><BR><a href="GXSetGPMetric.html">GXSetGPMetric</a><BR><a href="GXClearGPMetric.html">GXClearGPMetric</a>
40</p>
41
42<H2>Revision History</H2>
43<P>
442006/03/01 Initial version.<br>
45</P>
46
47<hr><p>CONFIDENTIAL</p></body>
48</html>