Skip to content

Commit 3820625

Browse files
committed
Another fix to avoid crashing in weaker devices
1 parent beddb08 commit 3820625

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ if(EMSCRIPTEN)
111111
-sEXPORTED_RUNTIME_METHODS=[ccall]
112112
-pthread
113113
-sUSE_PTHREADS=1
114-
-sPTHREAD_POOL_SIZE=8
114+
-sPTHREAD_POOL_SIZE=4
115+
-sPTHREAD_POOL_SIZE_STRICT=0
115116

116117
)
117118
target_compile_options(complex-plotter PRIVATE "-s" "USE_GLFW=3" "-fexceptions" ${WASM_OPT_FLAGS} ${WASM_LTO_FLAGS})

0 commit comments

Comments
 (0)