aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2024-03-02 12:11:13 +0100
committerAndre Weissflog <floooh@gmail.com>2024-03-02 12:11:13 +0100
commitefbeec47cce847a58defb4742ec486161dd0c824 (patch)
tree69d207212bb641e2f71e7da7a9b90c29ad8f3361
parent079d3ecd4f08cdcf229acda1d429cfd8921eef96 (diff)
update changelog
-rw-r--r--CHANGELOG.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8e468914..5105b904 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,20 @@
## Updates
+### 02-Mar-2024:
+
+- sokol_app.h emscripten: two new flags in `sapp_desc` to configure the Emscripten main loop:
+ - `.html5_use_emsc_set_main_loop`: when this is true, the function `emscripten_set_main_loop()` will be used
+ to drive the sokol-app frame callback (otherwise `emscripten_request_animation_frame()` as before)
+ - `.html5_emsc_set_main_loop_simulate_infinite_loop`: this is passed as the `simulate_infinite_loop` parameter
+ into the `emscripten_set_main_loop()` function.
+ In general you should stick with sokol_app.h's default behaviour and only use those settings if you run
+ into specific problems, for instance as discussed here: https://github.com/floooh/sokol/issues/843
+
+ Related PR: https://github.com/floooh/sokol/pull/997
+
+ Many thanks to @Dvad for the PR, and also to @ambrusc for an alternative PR that hadn't been used, @voidware
+ for kicking of the discussion and all contributors!
+
### 01-Mar-2024:
Minor regression fix for yesterdays merge in the sokol_gfx.h Metal backend: