Remove V8 plugin
[platform/core/uifw/dali-toolkit.git] / docs / content / programming-guide / performance-tips.md
1 <!--
2 /**-->
3
4 # Performance Tips {#performancetips}
5
6 ## High CPU occupancy
7
8   - Try to reduce actor count ( less actors == less processing)
9   - Delete any actors that are not visible, or move them off stage
10   - Use TextureAtlases ( reduces OpenGL driver calls to glBindTexture
11   - Optimize / reduce any constraints used
12
13 ## High GPU occupancy
14
15   - Reduce visible actor count ( == less draw calls)
16   - For 2D UI graphics which require no z sorting you can use
17
18 ~~~{.cpp}
19 // C++
20 // In this mode depth testing is turned off and order is determined by the hierarchy (depth-first search order).
21 // Not always recommended if there is going to be a lot of overdraw ( if lots of actors are on top of each other)
22
23 Actor::SetDrawMode( DrawMode::OVERLAY_2D ); // C++
24 ~~~
25
26   - Use TextureAtlases (reduces state changes in the GPU)
27   - Use compressed textures
28   - Use lower quality textures, e.g. smaller, lower number of bits per pixel
29   - Avoid using too many textures which contain alpha and require blending
30   - Avoid using too many Dali::Layer with depth testing enabled. Otherwise the layer has to clear the depth buffer.
31   - Optimize any shaders used. Pixel shaders should be kept as lean as possible.
32
33
34
35 */
36
37