Nasal performance and benchmarks: Difference between revisions

Jump to navigation Jump to search
add comparison new / current canvas text implementation
mNo edit summary
(add comparison new / current canvas text implementation)
Line 133: Line 133:


=== Canvas API - Text class ===
=== Canvas API - Text class ===
Optimized canvas API with caching and props.Node (not merged to FGDATA at the time of writing)
Optimized canvas API with caching and props.Node (not merged to FGDATA at the time of writing). Older implementation below for reference.
Repeat = 50,000
Repeat = 50,000


Line 143: Line 143:
|-
|-
| setText() different value || 0.561 ||  
| setText() different value || 0.561 ||  
|-
| Old
|-
| setText() same value || 0.340 ||
|-
| setText() different value || 0.692 ||
|-
| setTextFast() same value || 0.192 ||
|-
| setTextFast() different value || 0.541 ||
|-
| updateText() same value || 0.050 ||
|-
| updateText() different value || 0.704 ||
|}
|}


252

edits

Navigation menu