Skip to content

Commit

Permalink
fix anim timing
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Jan 11, 2025
1 parent 7f8ebb6 commit 4457455
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion webgpu/lessons/webgpu-multiple-canvases.md
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ when we're animating.
requestId = undefined;
} else {
requestId = requestAnimationFrame(render);
+ then = performance.now();
+ then = performance.now() * 0.001;
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion webgpu/webgpu-multiple-canvases-x200-optimized.html
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@
requestId = undefined;
} else {
requestId = requestAnimationFrame(render);
then = performance.now();
then = performance.now() * 0.001;
}
}

Expand Down
2 changes: 1 addition & 1 deletion webgpu/webgpu-multiple-canvases-x200.html
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@
requestId = undefined;
} else {
requestId = requestAnimationFrame(render);
then = performance.now();
then = performance.now() * 0.001;
}
}

Expand Down

0 comments on commit 4457455

Please sign in to comment.