Skip to content

Conversation

@AlexandreK38
Copy link
Contributor

With EMSCRIPTEN, the INITIAL_MEMORY is the amount of bytes that will be required at launch in the browser no matter it is needed or not, and the app won't be able to ask for more than this amount too. While it works on high performance devices, it won't on medium or low devices because they don't have that much memory.
The solution is to lower the initial value (to 100MB which seems reasonable), and allow the memory to grow by using ALLOW_MEMORY_GROWTH.

Note: it will be allowed to grow until MAXIMUM_MEMORY which is 2GB by default

@halx99 halx99 merged commit f527eb8 into axmolengine:dev Jun 23, 2025
15 checks passed
@halx99 halx99 added this to the 2.6.2 milestone Jun 23, 2025
@halx99 halx99 added the enhancement New feature or request label Jun 23, 2025
@AlexandreK38 AlexandreK38 deleted the wasm-fix-memory branch June 24, 2025 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants