X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=docs%2Fcontent%2Fshared-javascript-and-cpp-documentation%2Fperformance-tips.md;h=782c05b8d0390d5a4480c308c943778670c9b348;hb=4ee66864e6f96d6de8c4f0b8beed439c0f3508d1;hp=e96ae4d9dabdda26113e765a283f2abf46953559;hpb=659d0ae8e8c828cb46fad7448b37ff9b7062819d;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/docs/content/shared-javascript-and-cpp-documentation/performance-tips.md b/docs/content/shared-javascript-and-cpp-documentation/performance-tips.md index e96ae4d..782c05b 100644 --- a/docs/content/shared-javascript-and-cpp-documentation/performance-tips.md +++ b/docs/content/shared-javascript-and-cpp-documentation/performance-tips.md @@ -1,7 +1,7 @@ -/** - * + -# Performance Tips {#performancetips} +# Performance Tips {#performancetips} ## High CPU occupancy @@ -14,14 +14,21 @@ - Reduce visible actor count ( == less draw calls) - For 2D UI graphics which require no z sorting you can use + ~~~{.cpp} - // In this mode depth testing is turned off and order is determined by the hierachy (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) +// C++ +// In this mode depth testing is turned off and order is determined by the hierachy (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::SetDrawMode( DrawMode::OVERLAY_2D ); // C++ +~~~ - Actor::SetDrawMode( DrawMode::OVERLAY ); // C++ -~~~~ ~~~{.js} - actor.drawMode = dali.DRAW_MODE_OVERLAY; // JavaScript +// JavaScript +// In this mode depth testing is turned off and order is determined by the hierachy (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 compressed textures @@ -33,6 +40,7 @@ @class _Guide_Performance_Tips + */