Fixes an issue where gifs would play at half speed on ProMotion displays.
displayRefreshDelayTime[0] currently evaluates to 1.0 on ProMotion displays. This fix now evaluates it to 2.0. It remains set to 1.0 on non-ProMotion display devices.
To achieve this, displayRefreshDelayTime values now take into account a frameRateRatio which is the display's maximumFramesPerSecond / 60.
Fixes an issue where gifs would play at half speed on ProMotion displays.
displayRefreshDelayTime[0]
currently evaluates to1.0
on ProMotion displays. This fix now evaluates it to2.0
. It remains set to1.0
on non-ProMotion display devices.To achieve this,
displayRefreshDelayTime
values now take into account aframeRateRatio
which is the display'smaximumFramesPerSecond / 60
.Results
On ProMotion Device (iPhone 13 Pro)
On Non-ProMotion Device (iPhone 15 Simulator)