alexiscreuzot / SwiftyGif

High performance GIF engine
MIT License
2k stars 211 forks source link

Fixes double speed playback on iPad Pro. #150

Closed mattcomi closed 3 years ago

mattcomi commented 3 years ago

When calculating displayRefreshDelayTime, the maxFramePerSecond was incorrectly assumed to always be 60. This PR calculates the maxFramePerSecond using UIScreen.main.maximumFramesPerSecond. It then populates the remaining displayRefreshFactors as needed.

alexiscreuzot commented 3 years ago

Looks good, thanks for your work!