use requestAnimationFrame on desktop
This commit is contained in:
1 parent
856fb1874e
commit
71f7481ded
1 file changed
+3
-1
@@ -44,7 +44,9 @@ fn main() {
|
|||||||
.then(response => {{
|
.then(response => {{
|
||||||
response.arrayBuffer()
|
response.arrayBuffer()
|
||||||
.then(bytes => {{
|
.then(bytes => {{
|
||||||
run_from_bytes(bytes);
|
requestAnimationFrame(() => {{
|
||||||
|
run_from_bytes(bytes);
|
||||||
|
}});
|
||||||
window.interpreter.wait_for_request();
|
window.interpreter.wait_for_request();
|
||||||
}});
|
}});
|
||||||
}})
|
}})
|
||||||
|
|||||||
Reference in new issue
Block a user