Skip to content

Commit

Permalink
[Documentation] Improve description of synchronous concurrency with s…
Browse files Browse the repository at this point in the history
…creenshot and video link. (#406)

* Add screenshot for synchronous concurrency description

* Include reference to new image, improve text of synchronous concurrency doc
  • Loading branch information
appleguy authored and nguyenhuy committed Jul 1, 2017
1 parent f71963d commit 5e288c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/_docs/synchronous-concurrency.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ By setting this property to YES, the main thread will be blocked until display h

Using this option does not eliminate all of the performance advantages of Texture. Normally, a given node has been preloading and is almost done when it reaches the screen, so the blocking time is very short. Even if the rangeTuningParameters are set to 0 this option outperforms UIKit. While the main thread is waiting, all subnode display executes concurrently, thus synchronous concurrency.

See the <a href="goo.gl/KJijuX">NSSpain 2015 talk video</a> for a visual walkthrough of this behavior.

<div class = "highlight-group">
<span class="language-toggle"><a data-lang="swift" class="swiftButton">Swift</a><a data-lang="objective-c" class = "active objcButton">Objective-C</a></span>
<div class = "code">
Expand All @@ -26,3 +28,5 @@ node.neverShowPlaceholders = true
<br>

Usually, if a cell hasn't finished its display pass before it has reached the screen it will show placeholders until it has drawing its content. Setting this option to YES makes your scrolling node or ASViewController act more like UIKit, and in fact makes Texture scrolling visually indistinguishable from UIKit's, except that it's faster.

<img src="/static/images/synchronous-concurrency.jpg" width="50%">
Binary file added docs/static/images/synchronous-concurrency.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5e288c5

Please sign in to comment.