"UILabels are actually stored as bitmaps, which could easily consume megabytes of memory. If you have labels that you sometimes set to hidden, set their text value to nil when they are no longer visible.” https://www.fadel.io/blog/posts/ios-performance-tips-you-didnt-know/ …
-
-
Replying to @steipete
I would actually love to know why it's done this way
2 replies 0 retweets 1 like -
Replying to @jcampbell_05 @steipete
Why text is stored as a bitmap? Because rendering text from it's original vector representation is super-expensive and AFAIK can't yet be done perfectly in real-time on the gpu, so it makes sense to cache the result whenever practical.
5 replies 0 retweets 34 likes -
WPF was able to render text in hardware on DX9 class hardware. I’m not entirely sure how it was done, but it used shaders to apply sub pixel anti-aliasing.
2 replies 0 retweets 1 like -
Replying to @ramalovespandas @nicklockwood and
There’s also Slug now https://sluglibrary.com
1 reply 0 retweets 3 likes -
Replying to @robinkunde @ramalovespandas and
Nick Lockwood Retweeted Eric Lengyel
Yeah, Apple tried to acquihire the developer, so I guess it's solving a hard problem:https://twitter.com/EricLengyel/status/1160334568194396160?s=20 …
Nick Lockwood added,
3 replies 1 retweet 11 likes -
Replying to @nicklockwood @steipete and
I seem to remember
@pcwalton working on this for servo, no idea if the result of that work is usable independently.1 reply 0 retweets 1 like
Yes, of course it’s usable independently :)http://github.com/servo/pathfinder …
-
-
For what it’s worth, I no longer believe that vector rendering on GPU is a hard problem. It’s really quite simple. Most of the difficulty comes from the temptation to overengineer it.
0 replies 0 retweets 6 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.