Skip to content

Partition gpu_cache glyph lookup by FontId-GlyphId

Jeremy Soller requested to merge alexheretic:master into master

Created by: alexheretic

Improve GPU texture cache performance by partitioning the glyph lookup tree by font & glyph id. This change also cuts down on the worst case/full traversal cache lookup scenario, now it would only need to fully traverse the font-glyph partition.

name                                                    before ns/iter  after ns/iter  diff ns/iter   diff %  speedup 
gpu_cache::cache_bench_tests::cache_bench_tolerance_1   2,826,166       2,348,818          -477,348  -16.89%   x 1.20 
gpu_cache::cache_bench_tests::cache_bench_tolerance_p1  4,955,004       4,483,963          -471,041   -9.51%   x 1.11 

Merge request reports