Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[iOS] Trigger vsync on iOS in every batch. (#1759)
Browse files Browse the repository at this point in the history
  • Loading branch information
wqyfavor authored and wqyfavor committed Nov 20, 2018
1 parent fabc9ae commit 6ef7d46
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions weex_core/Source/core/render/page/render_page.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -628,13 +628,11 @@ void RenderPage::Batch() {
if ((kUseVSync && this->need_layout_.load()) || !kUseVSync) {
LayoutInner();
}
else {
#if OS_IOS
// vsync may stopped, trigger once
RenderAction *action = new RenderActionTriggerVSync(page_id());
PostRenderAction(action);
// vsync may stopped, trigger once
RenderAction *action = new RenderActionTriggerVSync(page_id());
PostRenderAction(action);
#endif
}
}

RenderObject *RenderPage::GetRenderObject(const std::string &ref) {
Expand Down

0 comments on commit 6ef7d46

Please sign in to comment.