未验证 提交 bbb1f124 编写于 作者: J Jim Graham 提交者: GitHub

Adjust iOS frame start times to match the platform info (#11802)

上级 1de28d03
......@@ -114,7 +114,8 @@ float VsyncWaiterIOS::GetDisplayRefreshRate() const {
}
- (void)onDisplayLink:(CADisplayLink*)link {
fml::TimePoint frame_start_time = fml::TimePoint::Now();
CFTimeInterval delay = CACurrentMediaTime() - link.timestamp;
fml::TimePoint frame_start_time = fml::TimePoint::Now() - fml::TimeDelta::FromSecondsF(delay);
fml::TimePoint frame_target_time = frame_start_time + fml::TimeDelta::FromSecondsF(link.duration);
display_link_.get().paused = YES;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册