mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-05 12:13:02 +00:00
[Documentation] Improve description of synchronous concurrency with screenshot and video link. (#406)
* Add screenshot for synchronous concurrency description * Include reference to new image, improve text of synchronous concurrency doc
This commit is contained in:
parent
f71963d717
commit
5e288c596e
@ -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">
|
||||
@ -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%">
|
||||
|
BIN
docs/static/images/synchronous-concurrency.jpg
vendored
Normal file
BIN
docs/static/images/synchronous-concurrency.jpg
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 193 KiB |
Loading…
x
Reference in New Issue
Block a user