alexheretic / glyph-brush

Fast GPU cached text rendering
Apache License 2.0
673 stars 52 forks source link

Handle multiple draws per frame better #128

Closed alexheretic closed 1 year ago

alexheretic commented 3 years ago

Currently a GlyphBrush should call process_queued once per frame for the caching system to work properly. Multiple draws can be handled with multiple GlyphBrush each drawing once per frame.

We could probably do better here though.

Nuckal777 commented 1 year ago

Didn't look deeply into the topic. Can we achieve better cache usage with multiple draws, if the user calls GlyphBrush::cleanup_frame() explicitly when finishing a frame? Currently the cache is trimmed after each draw implicitly.

alexheretic commented 1 year ago

Moved to more concrete issues #157 & #158