Commit 84e1278
authored
# Objective
Rearrange the order that cosmic text's properties are set for improved
performance.
## Solution
Update size and metrics after `set_rich_text` in
`TextPipeline::update_buffer`
## Testing
yellow = this PR, red = main:
```
cargo run --example many_glyphs --features=trace_tracy,debug --release -- --recompute-text
```
<img width="1610" height="605" alt="reorder"
src="https://github.com/user-attachments/assets/4819aa79-a147-45ab-8636-3e17f81462b2"
/>
<img width="1603" height="617" alt="reorder-measure-text"
src="https://github.com/user-attachments/assets/eb74569d-79e1-4138-9283-641eae8fd2ab"
/>
1 parent 89e4193 commit 84e1278
1 file changed
+4
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
195 | 194 | | |
196 | 195 | | |
197 | 196 | | |
| |||
213 | 212 | | |
214 | 213 | | |
215 | 214 | | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
221 | 219 | | |
222 | 220 | | |
223 | 221 | | |
| |||
0 commit comments