1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3<HEAD>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META name="GENERATOR" content="Microsoft FrontPage 5.0">
6<META http-equiv="Content-Style-Type" content="text/css">
7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
8<TITLE>GXSetMisc</TITLE>
9</HEAD>
10<BODY>
11<H1 align="left">GXSetMisc</H1>
12
13<H2>Syntax</H2>
14<dl><dd><pre class="construction">
15#include &lt;revolution/gx.h&gt;
16
17void GXSetMisc( <A href="../Enumerated_Types/GXMiscToken.html">GXMiscToken</A> token, u32 value );
18</pre></dd></dl>
19
20<H2>Arguments</H2>
21<TABLE class="arguments" border="1" >
22  <TBODY>
23    <TR>
24<TD width="15%" align="center" bgcolor="#C0C0C0"><SPAN class="argument">token</SPAN></TD>
25<TD width="15%" align="center" bgcolor="#C0C0C0"><SPAN class="argument">value</SPAN></TD>
26<TD width="70%" align="center" bgcolor="#C0C0C0">Description</TD>
27    </TR>
28    <TR>
29<TH align="center" rowspan="2">GX_MT_XF_FLUSH</TH>
30<TD><CODE>GX_XF_FLUSH_NONE</CODE></TD>
31<TD>Sends no flush vertices between raster-state commands and geometry. This is the default setting.</TD>
32    </TR>
33    <TR>
34<TD><CODE>GX_XF_FLUSH_SAFE</CODE></TD>
35<TD>Sends flush vertices between raster-state commands and geometry. Use this setting to avoid the XF stall bug. However, this setting is slightly detrimental in terms of speed, memory usage, and other factors, so attempt it only when the XF stall bug occurs.</TD>
36    </TR>
37    <TR>
38<TH align="center" rowspan="2">GX_MT_DL_SAVE_CONTEXT</TH>
39      <TD>0</TD>
40<TD>Disables the saving of GX shadow registers in <CODE>GXBeginDisplayList</CODE> and their restoration in <CODE>GXEndDisplayList</CODE>.&nbsp;This saves time.</TD>
41    </TR>
42    <TR>
43      <TD>1</TD>
44<TD>Enables the saving of GX shadow registers in <CODE>GXBeginDisplayList</CODE> and their restoration in <CODE>GXEndDisplayList</CODE>. This is the default setting.</TD>
45    </TR>
46  </TBODY>
47</TABLE>
48
49<H2>Return Values</H2>
50<P>None.</P>
51
52<H2>Description</H2>
53<P>This function is used to control settings passed to various functions.</P>
54
55<H2>See Also</H2>
56<P>None.</P>
57
58<H2>Revision History</H2>
59<P>
602008/07/22 Added information on the purpose of using <CODE>GX_XF_FLUSH_SAFE</CODE> (the workaround for the XF stall bug).<br>2006/03/01 Initial version.<br>
61</P>
62
63<hr><p>CONFIDENTIAL</p></body>
64</HTML>