Open superlou opened 1 year ago
In my application, I'm drawing a lot of text. I cache the FormattedTextBlock (https://github.com/superlou/signrs/blob/b453aae0f8cfc38e800f59db5f5be09248ebe836/src/js_env/graphics.rs#L116-L140) so that they aren't recreated every frame. However, when profiling the application, I'm spending the bulk of the speedy2d time in GlyphCache::get_renderer2d_actions.
FormattedTextBlock
GlyphCache::get_renderer2d_actions
Flamegraph SVG file
Is there possibly somewhere I can start looking in there to improve the performance of GlpyhCache, or is that already heavily optimized?
GlpyhCache
In my application, I'm drawing a lot of text. I cache the
FormattedTextBlock
(https://github.com/superlou/signrs/blob/b453aae0f8cfc38e800f59db5f5be09248ebe836/src/js_env/graphics.rs#L116-L140) so that they aren't recreated every frame. However, when profiling the application, I'm spending the bulk of the speedy2d time inGlyphCache::get_renderer2d_actions
.Flamegraph SVG file
Is there possibly somewhere I can start looking in there to improve the performance of
GlpyhCache
, or is that already heavily optimized?