What does the ‘WebGL Memory Size’ player setting actually do?
I get this error no matter what I set it to:
“Cannot enlarge memory arrays. Either
(1) compile with -s TOTAL_MEMORY=X
with X higher than the current value
16777216, (2) compile with
ALLOW_MEMORY_GROWTH which adjusts the
size at runtime but prevents some
optimizations, or (3) set
Module.TOTAL_MEMORY before the program
runs.”
But, if I open the generated .js file and increase TOTAL_MEMORY manually, it loads without error.
I also noticed that you can just set TOTAL_MEMORY in Module object of the generated html page.