gdk: Add GDK_RENDERING environment variable

It's useful for debugging rendering issues, both correctness and
performance wise.

See the added documentation for what it does and how it works.
This commit is contained in:
Benjamin Otte
2011-03-11 01:10:37 +01:00
parent a55b59fef3
commit 2a2ad8523f
5 changed files with 77 additions and 6 deletions

View File

@ -381,6 +381,41 @@ nevertheless.
</para>
</formalpara>
<formalpara>
<title><envar>GDK_RENDERING</envar></title>
<para>
If set, selects the way how GDK creates similar surfaces. This affects both the
functionality of the function gdk_window_create_similar_surface() as well as the
way GDK creates backing surfaces for double buffering. The following values can
be used:
<variablelist>
<varlistentry>
<term>similar</term>
<listitem><para>Create similar surfaces to the window in use. This is the
default behavior when the variable is not set.</para></listitem>
</varlistentry>
<varlistentry>
<term>image</term>
<listitem><para>Always create image surfaces. This essentially turns off
all hardware acceleration inside GTK.</para></listitem>
</varlistentry>
<varlistentry>
<term>recording</term>
<listitem><para>Always create recording surfaces. This causes bare rendering
to the backend without the creation of intermediate surfaces (Pixmaps in X)
and will likely cause flicker.</para></listitem>
</varlistentry>
</variablelist>
All other values will be ignored and fall back to the default behavior. More
values might be added in the future.
</para>
</formalpara>
<formalpara>
<title><envar>GDK_BACKEND</envar></title>