objective c - Text Rendering iOS - Most performant way to render fast changing text -


What is the best way to present fast-changing text in iOS (10-15 numbers that change every single frame) is? They try that I have done so far:

1) CetextLayer + CTFont and NSString : Quite Fast but no access to Kurning, which I want (if a move knows how to work with kerning CTFont and without NSAttributedString , it would also be good , But this is not the main question;))

2) See larger FPS drop compared to CetextLayer + NSAttributedString : slow and elongated I I am This change in my app gives FPS drop from 50-60 to 30. 3) Using UIImageViews and UIImage using bitmap fonts: Even quite fast, though not really satisfied because IOS efficiently There should be a better method / more effective way in iOS to render.

Edit:

4) UILabel + NSString - is quite fast, but there is no access to kerning again .

5) UILabel + NSAttributedString - then slow and clumsy

A NSAttributedString rendering is very slow by providing a basic NSString . This is really disappointing because I need this time from NSAttributedString , there is a difference between the characters.

Apple has recently added a text kit in iOS, you can start by checking it.


Comments