From: Yoonsang Lee Date: Mon, 20 Jul 2015 00:54:05 +0000 (+0900) Subject: [DALi][DOC-213] Move animation.multi-threading into background.multi-threaded archite... X-Git-Tag: tizen_3.0/TD_SYNC/20161201~691^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0bc8de3daeb9f469a9c92b107532502a778d0575;p=sdk%2Fonline-doc.git [DALi][DOC-213] Move animation.multi-threading into background.multi-threaded architecture Signed-off-by: Yoonsang Lee Change-Id: I4d363c69efebee070a788dba6ae03e1a4eec4247 --- diff --git a/org.tizen.ui.guides/html/index.htm b/org.tizen.ui.guides/html/index.htm index 3a7c148..63383af 100755 --- a/org.tizen.ui.guides/html/index.htm +++ b/org.tizen.ui.guides/html/index.htm @@ -218,7 +218,6 @@
  • Resources
  • @@ -227,9 +226,8 @@ - diff --git a/org.tizen.ui.guides/html/native/dali/background_n.htm b/org.tizen.ui.guides/html/native/dali/background_n.htm index 0d9980c..7e16d5e 100755 --- a/org.tizen.ui.guides/html/native/dali/background_n.htm +++ b/org.tizen.ui.guides/html/native/dali/background_n.htm @@ -39,7 +39,7 @@ diff --git a/org.tizen.ui.guides/html/native/dali/guides_dali_n.htm b/org.tizen.ui.guides/html/native/dali/guides_dali_n.htm index b3baf86..affe483 100755 --- a/org.tizen.ui.guides/html/native/dali/guides_dali_n.htm +++ b/org.tizen.ui.guides/html/native/dali/guides_dali_n.htm @@ -62,7 +62,6 @@
  • Resources: Handling Images

    Enables you to manage resource images.

  • @@ -73,7 +72,7 @@ diff --git a/org.tizen.ui.guides/html/native/dali/multi_threading_n.htm b/org.tizen.ui.guides/html/native/dali/multi_threaded_n.htm similarity index 79% rename from org.tizen.ui.guides/html/native/dali/multi_threading_n.htm rename to org.tizen.ui.guides/html/native/dali/multi_threaded_n.htm index 1c15151..534438b 100755 --- a/org.tizen.ui.guides/html/native/dali/multi_threading_n.htm +++ b/org.tizen.ui.guides/html/native/dali/multi_threaded_n.htm @@ -11,7 +11,7 @@ - Multi-Threading Notes: The Secret of High-Performance Animation in DALi + Multi-Threaded Architecture: The Secret of High-Performance of DALi @@ -23,22 +23,39 @@
    -

    Multi-Threading Notes: The Secret of High-Performance Animation in DALi

    +

    Multi-Threaded Architecture: The Secret of High-Performance of DALi

    -

    Multi-threaded Architecture

    +

    DALi uses a multithreaded architecture in order to provide the best performance and scalability.

    +
      +
    • Event Thread: The main thread in which application code and event handling runs.
    • +
    • Update Thread: Updates the nodes on the scene as well as running animations and constraints.
    • +
    • Render Thread: OpenGL drawing, texture and geometry uploading etc.
    • +
    • Resource Thread: Loads images and decodes into bitmaps etc.
    • +
    + +

    Figure: DALi Thread Architecture

    +

    Thread Architecture

    + + + + + +

    Animations with Multi-Threading

    + +

    Multi-threaded Architecture

    DALi animations and rendering occur in a dedicated rendering thread. This allows animations to run smoothly, regardless of the time taken to process inputs events in the application code.

    @@ -49,7 +66,7 @@

    Figure: Actor hierarchy with an animation

    Actor hierarchy with an animation

    -

    Reading an Animated Value

    +

    Reading an Animated Value

    When a property is animatable, it can only be modified in the rendering thread. The value returned from a getter method is the value used when the previous frame was rendered.

    @@ -78,7 +95,7 @@ std::cout << "Current position: " << current.x << &q // Other positions "Current position: 10,10,10" -

    Setting a Property during an Animation

    +

    Setting a Property during an Animation

    When a property is being animated, the animation overrides all values set with other functions, such as the SetPosition() function.

    @@ -92,6 +109,8 @@ std::cout << "Current position: " << current.x << &q
  • Render frame
  • + + diff --git a/org.tizen.ui.guides/html/native/dali/threads_n.htm b/org.tizen.ui.guides/html/native/dali/threads_n.htm deleted file mode 100755 index c78457a..0000000 --- a/org.tizen.ui.guides/html/native/dali/threads_n.htm +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - - - - - - - Thread Architecture: High-Performance Multi-Threaded Architecture of DALi - - - - - - -
    -

    Thread Architecture: High-Performance Multi-Threaded Architecture of DALi

    - -

    DALi uses a multithreaded architecture in order to provide the best performance and scalability.

    -
      -
    • Event Thread: The main thread in which application code and event handling runs.
    • -
    • Update Thread: Updates the nodes on the scene as well as running animations and constraints.
    • -
    • Render Thread: OpenGL drawing, texture and geometry uploading etc.
    • -
    • Resource Thread: Loads images and decodes into bitmaps etc.
    • -
    - -

    Figure: DALi Thread Architecture

    -

    Thread Architecture

    - - - - - - - -
    - -Go to top - - - - - - - -