Closed ibrierley closed 3 years ago
I've moved the textPainter layout into the map decoder, so we don't recreate every time and doesn't need recalculations as it never changes. Not sure if this is a bit of a hack or legit yet :). This is preferable to the old method with multiple tiles and zooming as we couldn't do this. Have left the old code in commented out in case there are some problems not spotted.
Feels a lot smoother, but probably needs proper testing!
Text is typically quite resource hungry. I think it's because it needs to recalculate layout every time (even if not repainting, but scaling). Maybe there are some optimisations we can do.