iOS 13 a fost prezentat de catre compania Apple in 2019 cu foarte multe noutati neasteptate, dar si foarte multe functii pe care nimeni nu le-a crezut posibile pana acum. Una dintre ele are legatura cu iPadOS, versiunea iOS 13 pentru iPad, compania Apple permitandu-le dezvoltatorilor sa acceseze informatii despre latenta Apple Pencil, dar cu anumite limite, asa cum face ea de obieci.
Apple a redus latenta Apple Pencil de la 20ms la 9ms, iar dezvoltatorii care fac aplicatii pentru stylus vor putea sa acceseze statistici despre latenta sa in iOS 13. Desi Apple ofera acces la ceste informatii, dezvoltatorii nu vor vedea ce se intampla la latenta de 9ms, ci la 13ms, pentru ca Apple nu ar fi putut oferi acces la ce are ea fara a expune alte informatii “sensibile”.
Apple spune ca a reusit sa reduca substantial latenta Apple Pencil folosind optimizari pentru randarea grafica folosind Metal, prin prezicerea mai buna a tingerilor, si procesarea in mijlocul evenimentelor. Aplicatiile terte vor putea oferi latenta aproape la fel de buna precum aplicatiile Apple pentru Apple pencil, si va fi interesant de vazut ce vor reusi sa ofere pentru clienti.
“Note that we achieve low latency through a combination of several techniques: Metal rendering optimizations, touch prediction, and mid-frame event processing. Third-party developers can achieve similar low-latency drawing experiences by taking advantage of Metal rendering and touch prediction best practices covered in the WWDC Sessions I’ve referenced below. With these you can achieve nearly all of the improvements you’ve seen in PencilKit drawing with your own renderer. (There does remain a small gap: 4 ms of our improvement comes from a technique called mid-frame event processing; we are looking for ways to expose this capability to third party engines in the future, but for this year this one was only safely achievable through tight integration within our frameworks).”
This post was last modified on iul. 5, 2019, 7:45 PM 19:45