Skip to content

Commit

Permalink
Switch rAF to rIC in scene demo to prevent update lag (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
keithclark committed Jun 7, 2019
1 parent 04b05d0 commit 281c321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/3d-scene/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

const update = () => {
if (!paused) {
requestAnimationFrame(update);
requestIdleCallback(update);
}

if (upKeyPressed) {
Expand Down

0 comments on commit 281c321

Please sign in to comment.