ios - How to run a Timer in connection the the display refresh rate? -


i have object calculate velocity of scrolling area. when user move finger off screen, object fire event every 10 ms update position of scrolling (regarding calculated velocity) , refresh screen (by calling setneedsdisplayinrect of glkview object).

i m worry synchronize event actual display refresh rate (that 60 fps normally). under ios way fire event on each display refresh (so around every 16 ms) ? maybe must use cadisplaylink ?

yes, sounds cadisplaylink best bet. designed sync screen refresh.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -