Skip to content

Commit

Permalink
16ms frame duration
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Apr 18, 2019
1 parent 1a5ccc7 commit ef8ecc9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/moon/dist/moon.js
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@
// Move to the diff phase if there is nothing left to do.
executeDiff([viewOld], [viewNew], []);
break;
} else if (performance.now() - executeStart >= 12) {
} else if (performance.now() - executeStart >= 16) {
// If the current frame doesn't have sufficient time left to keep
// running then continue executing the view in the next frame.
requestAnimationFrame(function () {
Expand Down Expand Up @@ -811,7 +811,7 @@
// Move to the patch phase if there is nothing left to do.
executePatch(patches);
break;
} else if (performance.now() - executeStart >= 12) {
} else if (performance.now() - executeStart >= 16) {
// If the current frame doesn't have sufficient time left to keep
// running then continue diffing in the next frame.
requestAnimationFrame(function () {
Expand Down
2 changes: 1 addition & 1 deletion packages/moon/dist/moon.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/moon/src/executor/executor.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function executeView(nodes, parents, indexes) {
executeDiff([viewOld], [viewNew], []);

break;
} else if (performance.now() - executeStart >= 12) {
} else if (performance.now() - executeStart >= 16) {
// If the current frame doesn't have sufficient time left to keep
// running then continue executing the view in the next frame.
requestAnimationFrame(() => {
Expand Down Expand Up @@ -235,7 +235,7 @@ function executeDiff(nodesOld, nodesNew, patches) {
executePatch(patches);

break;
} else if (performance.now() - executeStart >= 12) {
} else if (performance.now() - executeStart >= 16) {
// If the current frame doesn't have sufficient time left to keep
// running then continue diffing in the next frame.
requestAnimationFrame(() => {
Expand Down

0 comments on commit ef8ecc9

Please sign in to comment.