Skip to content

Commit

Permalink
Use emmalloc instead of dlmalloc to save a bit more space
Browse files Browse the repository at this point in the history
basis_transcoder.js 58707
basis_transcoder.wasm 217809
  • Loading branch information
zeux committed May 23, 2019
1 parent f5d5029 commit c2430c3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion webgl/transcoder/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ if (EMSCRIPTEN)
set_target_properties(basis_transcoder.js PROPERTIES
OUTPUT_NAME "basis_transcoder"
SUFFIX ".js"
LINK_FLAGS "--bind -s ALLOW_MEMORY_GROWTH=1 -O3 -s ASSERTIONS=0 -DNDEBUG -DBASISD_SUPPORT_BC7=0")
LINK_FLAGS "--bind -s ALLOW_MEMORY_GROWTH=1 -O3 -s ASSERTIONS=0 -s MALLOC=emmalloc -DNDEBUG -DBASISD_SUPPORT_BC7=0")
endif()
2 changes: 1 addition & 1 deletion webgl/transcoder/build/basis_transcoder.js

Large diffs are not rendered by default.

Binary file modified webgl/transcoder/build/basis_transcoder.wasm
Binary file not shown.

0 comments on commit c2430c3

Please sign in to comment.