simon-git: puzzles (main): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Fri Apr 16 18:09:10 BST 2021


TL;DR:
  8fa545c Set ALLOW_MEMORY_GROWTH in the Emscripten build.

Repository:     https://git.tartarus.org/simon/puzzles.git
On the web:     https://git.tartarus.org/?p=simon/puzzles.git
Branch updated: main
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2021-04-16 18:09:10

commit 8fa545c76c35dd7954220eb172a1783044794168
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=8fa545c76c35dd7954220eb172a1783044794168;hp=f8b15bab6b2a8dd8309cdef3dc49ae3377cb997d
Author: Simon Tatham <anakin at pobox.com>
Date:   Fri Apr 16 18:07:15 2021 +0100

    Set ALLOW_MEMORY_GROWTH in the Emscripten build.
    
    How embarrassing. When I updated the Emscripten build to use WASM, a
    major reason I bothered to do it at all was that I'd heard that WASM
    was capable of reallocating its memory arena larger on the fly. Turns
    out that it _can_, but only if you specifically set the option in
    Emscripten to allow it.
    
    With this option set, I can finish a 25x25 Galaxies, where previously
    the game would crash part way through (and not even a very large part)
    with errors about memory growth in the Javascript console.

 cmake/platforms/emscripten.cmake | 1 +
 1 file changed, 1 insertion(+)



More information about the tartarus-commits mailing list