Repository navigation
Replies: 1 comment 3 replies
|
Hi! The most likely cause is the allocator. Your link line uses Emscripten's default Please try these changes in your flags:
For example: set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -pthread -msimd128 -mbulk-memory -mnontrapping-fptoint -msse4.2 -sMEMORY64=1 -s USE_BOOST_HEADERS=1 -s USE_FREETYPE=1 -Wno-pthreads-mem-growth")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -s MALLOC=mimalloc -s STACK_SIZE=1048576 --embed-file 'MiSans-Regular.otf' -s EXPORT_NAME=Funcs -s MODULARIZE=1 -sEXPORT_ES6 -lembind -s ENVIRONMENT=web,worker -s ALLOW_MEMORY_GROWTH=1 -s INITIAL_MEMORY=4GB -s MAXIMUM_MEMORY=12GB -s PTHREAD_POOL_SIZE_STRICT=0 -s PTHREAD_POOL_SIZE=navigator.hardwareConcurrency")One more note: wasm64 ( |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The same model takes more than ten times longer to run the thickMesh function on C++ compared to Wasm. I'm using Emscripten multi-thread Wasm64 (web environment).And I noticed that the performance on the web version of MeshInspector is similar to C++.Could it be because there's an error in the settings on my CMakeLists?
All reactions