Add info on disabling caching in themes

git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-documentation@1295 b067294f-1dea-0310-9683-c47a78595994
This commit is contained in:
mallum
2006-01-24 12:59:44 +00:00
parent aa01ecbb24
commit 2efcdfa71e

View File

@@ -1147,6 +1147,41 @@ defined area.
</para>
</section>
<section><title>How can I lower memory usage</title>
<para>
Matchbox window manager keeps a cached pixel representation of a
single, text free, application window title bar decoration image.
This is needed for the compositing of button images and as a
performance optimisation.
</para>
<para>
This caching can be disabled if; your main window title bar theme
consists of a single or few images, and any titlebar button images do
not contain an alpha component. To disable, add a cache attribute set
to false to your root theme.xml tag;
</para>
<programlisting>
&lt;theme cache="false" ... /&gt;
</programlisting>
<para>
By setting the enviromental variable MB_THEME_ALWAYS_CACHE this
attribute can be overidden and always ignored.
</para>
<para>
This functionality should be considered experimental. Memory, in bytes, saved approximates <emphasis>width x height x display bytes per pixel</emphasis> of you application window title bar decoration only.
</para>
</section>
<section><title>Where can I find more infomation ?</title>
<para>