Actor::SetDrawMode( DrawMode::OVERLAY_2D ); // C++
~~~
-~~~{.js}
-// JavaScript
-// In this mode depth testing is turned off and order is determined by the hierarchy (depth-first search order).
-// Not always recommended if there is going to be a lot of overdraw ( if lots of actors are on top of each other)
-
-actor.drawMode = dali.DRAW_MODE_OVERLAY_2D;
-~~~
- - Use TextureAtlases ( reduces state changes in the GPU)
+ - Use TextureAtlases (reduces state changes in the GPU)
- Use compressed textures
- Use lower quality textures, e.g. smaller, lower number of bits per pixel
- - Use Dali::NinePatchImage where possible.
- Avoid using too many textures which contain alpha and require blending
- Avoid using too many Dali::Layer with depth testing enabled. Otherwise the layer has to clear the depth buffer.
- Optimize any shaders used. Pixel shaders should be kept as lean as possible.
-@class _Guide_Performance_Tips
*/