Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > 89de7b48d4fd156f0af7b4735abd1453 > files > 8

libtiger-doc-0.3.4-1.fc14.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>libtiger: </title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.3 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">libtiger&#160;<span id="projectnumber">0.3.4</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<div class="textblock"><p>Performance is an important concern when overlaying a Kate stream on top of a video. This section highlights some of the most time consuming operations that Tiger performs.</p>
<p>Before all, Tiger is a renderer for Kate streams, so the performance of rendering is directly tied to the input data. While Tiger offers a variable rendering quality level, changing it will usually have less effect than changing the Kate stream to make lighter use of slow features.</p>
<p>In addition to the quality level, the Tiger API also offers a way to know if rendering the current state would yield a different image from the previous one. If so, rendering may be unnecessary. It all depends on whether the last render was overwritten (eg, if a new video frame was displayed, which the Tiger renderer has no way to know).</p>
<p>Note also that rendering is affected by whether or not a particular operation is done in hardware or software. Hardware is usually so much faster than software than a very slow operation in software might well become faster than most others if done in hardware. Therefore, the following is only indicative, as measured roughly on a particular setup.</p>
<p>Tiger uses caching to speed up rendering. Static text can be drawn once to a cache, and then reused for the lifetime of the event it appear in. Depending on the complexity of the text, the savings can range from insignificant to considerable. Memory usage should also be considered, as caching is currently naive and uses a lot of memory. Caching may be disabled if memory is scarce.</p>
<p>Most motions will prevent caching. While some some motions such as draw motions will not cause text not to be cached, others (eg, text position) will prevent caching.</p>
<p>The slowest operation of all is alpha blending. While a transparent background for all text may look nice, it's very slow to draw. Also, while static text with alpha can be cached, rendering the cache will also need alpha blending, so will be slow too.</p>
<p>Font outlines can be slow to render as well, since they are drawn by displacing the text slighly and drawing its shape several times.</p>
<p>Text/image size has a direct impact on performance. If possible, select smaller font sizes.</p>
<p>The number of different events visible at the same time also effects performance. Consider delaying events to lessen the maximum number of events onscreen at once.</p>
<p>Inline markup should be kept to a minimum. Font changes are expensive.</p>
<p>Text path is expensive. Not only can text on a path not be cached, but the computations needed to keep text following the path are fairly complex.</p>
<p>Setting a region clipping can improve performance, if text or images would otherwise overlap the outside of the region.</p>
<p>The pixel format of the destination buffer is also important. Tiger can draw to ARGB or ABGR buffers, in host endianness. It is typically much faster to ask Tiger to draw on the correct format than to perform a RGB swapping step afterwards. </p>
</div></div>
<hr class="footer"/><address class="footer"><small>Generated on Sat Mar 26 2011 for libtiger by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>