In iOS, How many times does RunLoop cycle in one second

566 views Asked by At

In iOS, How many times does RunLoop cycle in one second? Is it the same as the screen refresh rate, 60 times a second?

2

There are 2 answers

0
Rob On

No, the run loop frequency is not the same as the screen refresh rate. (It generally exceeds the potential screen refresh rates unless you block the thread.)

When we need to coordinate something with the screen refresh process, we generally use a CADisplayLink, which not only runs with the desired frequency, but also maximizes its timing within the screen refresh cycle.

Note, screen refresh rates can vary from device to device, and, on new devices, they can even vary depending upon the needs of a particular task running on a particular device (faster when you need better performance, slower when not needed and you want to enjoy more energy efficiency). See Optimizing ProMotion Refresh Rates for iPhone 13 Pro and iPad Pro.

0
heeween On

runloop do a lot of things except the screen rendering. So runloop run far greater than 60 times per second.