-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(Text): Measure Text on Dispatcher directly #896
Conversation
Closing and reopening to trigger CLA bot |
@rozele, |
@rozele, |
Codecov Report
@@ Coverage Diff @@
## master #896 +/- ##
==========================================
- Coverage 32.01% 31.93% -0.08%
==========================================
Files 257 257
Lines 18491 18538 +47
Branches 1557 1566 +9
==========================================
+ Hits 5919 5920 +1
- Misses 12425 12470 +45
- Partials 147 148 +1
Continue to review full report at Codecov.
|
Prior to this change, layout was performed on any background thread. Because of this, we had to perform text measurement on the UI thread, which incurred many blocking calls to the UI. This change adds a secondary CoreApplicationView + Dispatcher in UWP and a secondary STA thread in WPF. This thread is characterized as the layout thread, which is only used from the UIManager. All text measurement calls can now be made directly without having to context switch to the main UI thread.
…ance is destroyed
Prior to this change, layout was performed on any background thread. Because of this, we had to perform text measurement on the UI thread, which incurred many blocking calls to the UI. This change adds a secondary CoreApplicationView + Dispatcher in UWP and a secondary STA thread in WPF. This thread is characterized as the layout thread, which is only used from the UIManager. All text measurement calls can now be made directly without having to context switch to the main UI thread.
Fixes #106