1
<part id="running-clutter">
4
<firstname>Emmanuele</firstname>
5
<surname>Bassi</surname>
8
<email>ebassi<parameter>linux.intel.com</parameter></email>
14
<title>Running Clutter</title>
18
<section id="environment-variables">
19
<title>Environment Variables</title>
22
Clutter automatically checks environment variables during
23
its initialization. These environment variables are meant
24
as debug tools, overrides for default behaviours or to
25
address known hardware issues:
30
<term>CLUTTER_TEXT_DIRECTION</term>
32
<para>Forces the text direction of every Pango layout
33
inside Clutter. Valid values are: ltr or rtl</para>
37
<term>CLUTTER_SHOW_FPS</term>
39
<para>Prints out the frames per second achieved by Clutter.</para>
43
<term>CLUTTER_DEFAULT_FPS</term>
45
<para>Sets the default framerate.</para>
49
<term>CLUTTER_DISABLE_MIPMAPPED_TEXT</term>
51
<para>Disables mipmapping when rendering text.</para>
55
<term>CLUTTER_FUZZY_PICK</term>
57
<para>Enables "fuzzy picking".</para>
61
<term>CLUTTER_DEBUG</term>
63
<para>Enables debugging modes for Clutter.</para>
67
<term>COGL_DEBUG</term>
69
<para>Enables debugging modes for COGL.</para>
74
<para>On the GLX backend there is also:</para>
78
<term>CLUTTER_VBLANK</term>
80
<para>Selects the sync-to-vblank mode to be used.
81
Valid values are: none, dri or glx</para>
88
<section id="command-line">
89
<title>Command Line Arguments</title>
91
<para>Similarly to the environment variables, Clutter also installs
92
command line switches that are parsed during initialization:</para>
96
<term>--clutter-show-fps</term>
97
<listitem><para>Equivalent of CLUTTER_SHOW_FPS. Prints the
98
current rendering speed in frames per second.</para></listitem>
101
<term>--clutter-default-fps=FPS</term>
102
<listitem><para>Equivalent of CLUTTER_DEFAULT_FPS. Sets the
103
default framerate.</para></listitem>
106
<term>--clutter-text-direction=DIRECTION</term>
107
<listitem><para>Equivalent of CLUTTER_TEXT_DIRECTION. Sets the
108
direction for the text.</para></listitem>
111
<term>--clutter-disable-mipmapped-text</term>
112
<listitem><para>Equivalent of CLUTTER_DISABLE_MIPMAPPED_TEXT.
113
Disables mipmapping when rendering text.</para></listitem>
116
<term>--clutter-use-fuzzy-picking</term>
117
<listitem><para>Equivalent of CLUTTER_FUZZY_PICK. Enables
118
"fuzzy" picking.</para></listitem>
121
<term>--clutter-debug=FLAGS</term>
122
<listitem><para>Equivalent of CLUTTER_DEBUG. Sets FLAGS as the
123
Clutter debugging flags.</para></listitem>
126
<term>--clutter-no-debug=FLAGS</term>
127
<listitem><para>Unsets FLAGS from the Clutter debugging
128
flags.</para></listitem>
131
<term>--cogl-debug=FLAGS</term>
132
<listitem><para>Equivalent of COGL_DEBUG. Sets FLAGS as the
133
COGL debugging flags.</para></listitem>
136
<term>--cogl-no-debug=FLAGS</term>
137
<listitem><para>Unsets FLAGS from the COGL debugging
138
flags.</para></listitem>
142
<para>The X11 backends also have the following command line
147
<term>--display=DISPLAY</term>
148
<listitem><para>Sets the X11 display to use.</para></listitem>
151
<term>--screen=SCREEN</term>
152
<listitem><para>Sets the X11 screen number to use.</para></listitem>
156
<listitem><para>Make X11 calls synchronous.</para></listitem>
161
<para>The GLX backend also has the following command line option:</para>
165
<term>--vblank=METHOD</term>
166
<listitem><para>Equivalent of CLUTTER_VBLANK. Sets the sync-to-vblank
167
method to be used.</para></listitem>