Merge "Fix for multi-language support." into tizen
[platform/core/uifw/dali-toolkit.git] / docs / content / programming-guide / performance-tips.h
1 /*! \page performance-tips Performance Tips
2
3
4 <table>
5   <tr>
6     <th>High CPU occupancy <br></th>
7   </tr>
8   <tr>
9   <td>
10        - Try to reduce actor count ( less actors == less processing) <br>
11        - Delete any actors that are not visible, or move them off stage <br>
12        - Use TextureAtlases ( greatly reduces OpenGL driver calls to glBindTexture <br>
13        - Optimise / reduce any constraints used
14        </td>
15        </tr>
16 </table>
17 <br><br>
18 <table>
19   <tr>
20     <th>High GPU occupancy <br></th>
21   </tr>
22   <tr>
23   <td>
24        - Reduce visible actor count ( == less draw calls) <br>
25        - For 2D UI graphics which require no z sorting use @code Actor::SetDrawMode( DrawMode::OVERLAY );
26 // In this mode depth testing is turned off and order is determined by the hierachy (depth-first search order).
27         @endcode
28        - Use TextureAtlases ( reduces state changes in the GPU) <br>
29        - Use compressed textures
30        - Use lower quality textures, e.g. smaller, lower number of bits per pixel
31        - Use Dali::NinePatchImage  where possible.
32        - Avoid using too many textures which contain alpha and require blending
33        - Avoid using too many Dali::Layer with depth testing enabled. Otherwise the layer has to clear the depth buffer.
34        - Optimise any shaders used. Pixel shaders should be kept as lean as possible.
35        </td>
36        </tr>
37 </table>
38
39  */