WebGL memory size in Player Settings?

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

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.

What version are you using? Where are you getting the error?

Changing the memory in the HTML file is supported by us to allow you iterate faster over needed memory sizes for your content.

Use the search, Luke!