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
Post a Comment