Choppy keyframe animation #9364
Unanswered
8Observer8
asked this question in
Q&A
Replies: 1 comment
-
The animation becomes smooth if I make the canvas fixed rather than stretching it across the entire window: <canvas id="renderCanvas" width="380" height="380">
Your browser does not support HTML5 canvas element.
</canvas> But when I resize the window with the mouse, the animation stops being smooth and becomes jerky. You can reproduce a problem. Download this folder: src.zip, copy the folder content to the "src" folder of "tauri-app", run it: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I created a simple example of keyframe animation using the
requestAnimationFrame
function. It works perfectly smooth in the browser: https://plnkr.co/edit/Auqa82LUfLttx5DO?previewBut when I build my example to EXE for Window 10 it is very choppy: simple-key-frame-animation-tauri-exe.zip
Beta Was this translation helpful? Give feedback.
All reactions