From c3bf28eba456db60139b0588116e43efe1e82084 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Wed, 18 Sep 2024 19:34:33 +0900 Subject: [PATCH] Update README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index d6c1421..ced1266 100644 --- a/README.md +++ b/README.md @@ -16,3 +16,11 @@ This is a template for an emscripten project with a "Rust backend". ## Build Just run `make` in the root of this project. + +## Other Notes + +The current set up of the update/draw loop uses +`emscripten_set_main_loop_arg(...)` with parameters that should call the +browser's `requestAnimationFrame` that should call `update` and `draw` once per +each frame at the fps that the browser decides, which should match the fps of +your display.