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=windows-1252">
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.&nbsp;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.&nbsp;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 objects are rendered<BR> GXSetDrawSync(0xbeef);<BR> while (0xbeef != GXReadDrawSync())<BR> &nbsp;&nbsp;&nbsp; ;<BR> <BR> GXReadVCacheMetric(&amp;chk, &amp;miss, &amp;stall);<BR> <BR> OSReport(&quot;Vertex Cache miss rate:&nbsp; %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>,
40<a href="GXClearMemMetric.html">GXClearMemMetric</a>,
41<a href="GXReadPixMetric.html">GXReadPixMetric</a>,
42<a href="GXClearPixMetric.html">GXClearPixMetric</a>,
43<a href="GXReadGPMetric.html">GXReadGPMetric</a>,
44<a href="GXSetGPMetric.html">GXSetGPMetric</a>,
45<a href="GXClearGPMetric.html">GXClearGPMetric</a>
46</p>
47
48<H2>Revision History</H2>
49<P>
502006/03/01 Initial version.<br>
51</P>
52
53<hr><p>CONFIDENTIAL</p></body>
54</html>