浏览代码

readme: added a note about STACK_SIZE Emscripten compiler setting

assiduous 1 年之前
父节点
当前提交
b5672e8e8d
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      README.md

+ 4 - 0
README.md

@@ -237,6 +237,10 @@ Use the steps in [Build Steps](#build-steps), with the following notes/exception
 * For a standalone JS/WASM library, turn on `-DENABLE_GLSLANG_JS=ON`.
 * For a standalone JS/WASM library, turn on `-DENABLE_GLSLANG_JS=ON`.
 * To get a fully minimized build, make sure to use `brotli` to compress the .js
 * To get a fully minimized build, make sure to use `brotli` to compress the .js
   and .wasm files
   and .wasm files
+* Note that by default, Emscripten allocates a very small stack size, which may
+  cause stack overflows when compiling large shaders. Use the
+  [STACK_SIZE](https://emscripten.org/docs/tools_reference/settings_reference.html?highlight=environment#stack-size)
+  compiler setting to increase the stack size.
 
 
 Example:
 Example: