mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-07 21:23:32 +00:00

Manage the global buffer memory for vertex and indexed vertex buffers, increase the memory size incrementally twice by default and reduce the default buffer size, which is not suitable for typical scenarios. This could reduce the a bit stack memory usage and improve the portability across systems where has the stack memory limitation and potentially gaining performance enhancement by avoiding brutal stack memory usage at the many function calls. added the internal functions: - WgVertexBuffer* mpoolReqVertexBuffer(float scale = 1.0f); - WgIndexedVertexBuffer* mpoolReqIndexedVertexBuffer(float scale = 1.0f); - void mpoolRetVertexBuffer(WgVertexBuffer* buffer); - void mpoolRetIndexedVertexBuffer(WgIndexedVertexBuffer* buffer); issue: https://github.com/thorvg/thorvg/issues/3159
21 lines
726 B
Text
21 lines
726 B
Text
[binaries]
|
|
cpp = 'EMSDK:upstream/emscripten/em++.py'
|
|
ar = 'EMSDK:upstream/emscripten/emar.py'
|
|
strip = '-strip'
|
|
|
|
[properties]
|
|
root = 'EMSDK:upstream/emscripten/system'
|
|
shared_lib_suffix = 'js'
|
|
static_lib_suffix = 'js'
|
|
shared_module_suffix = 'js'
|
|
exe_suffix = 'js'
|
|
|
|
[built-in options]
|
|
cpp_args = ['-Wshift-negative-value', '-flto', '-Oz', '-fno-exceptions']
|
|
cpp_link_args = ['-Wshift-negative-value', '-flto', '-Oz', '-fno-exceptions', '--bind', '-sWASM=1', '-sALLOW_MEMORY_GROWTH=1', '-sEXPORT_ES6=1', '-sFORCE_FILESYSTEM=1', '-sMODULARIZE=1', '-sEXPORTED_RUNTIME_METHODS=FS', '-sUSE_WEBGPU=1', '-sMAX_WEBGL_VERSION=2', '-sFULL_ES3']
|
|
|
|
[host_machine]
|
|
system = 'emscripten'
|
|
cpu_family = 'wasm32'
|
|
cpu = 'wasm32'
|
|
endian = 'little'
|