emscripten friendly sdl loop

This commit is contained in:
lizzie 2026-06-10 00:03:43 +00:00
parent 7f5051767d
commit abc7ad2129
3 changed files with 66 additions and 40 deletions

View file

@ -77,12 +77,13 @@ if (NOT MSVC)
endif()
if (PLATFORM_EMSCRIPTEN)
# 10GB is required... yikes!
# 10GB is required at max... yikes!
target_link_options(yuzu-cmd PRIVATE
-sALLOW_MEMORY_GROWTH=1
-sINITIAL_MEMORY=33554432
-sMAXIMUM_MEMORY=10737418240
-sGLOBAL_BASE=16777216
-sEXPORTED_RUNTIME_METHODS="['FS']"
-sEXPORTED_RUNTIME_METHODS=['FS']
-sPTHREAD_POOL_SIZE_STRICT=0
-sPTHREAD_POOL_SIZE=navigator.hardwareConcurrency)
endif()