<TargetMachine>MachineX86</TargetMachine>\r
<AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>\r
<LargeAddressAware>true</LargeAddressAware>\r
+ <StackReserveSize>8388608</StackReserveSize>\r
</Link>\r
</ItemDefinitionGroup>\r
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">\r
<SubSystem>Windows</SubSystem>\r
<TargetMachine>MachineX64</TargetMachine>\r
<AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>\r
+ <StackReserveSize>8388608</StackReserveSize>\r
</Link>\r
</ItemDefinitionGroup>\r
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">\r
<TargetMachine>MachineX86</TargetMachine>\r
<AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>\r
<LargeAddressAware>true</LargeAddressAware>\r
+ <StackReserveSize>8388608</StackReserveSize>\r
</Link>\r
</ItemDefinitionGroup>\r
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">\r
<EnableCOMDATFolding>true</EnableCOMDATFolding>\r
<TargetMachine>MachineX64</TargetMachine>\r
<AdditionalDependencies>kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>\r
+ <StackReserveSize>8388608</StackReserveSize>\r
</Link>\r
</ItemDefinitionGroup>\r
<ItemGroup>\r
-s USE_LIBJPEG=1 \
-s USE_ZLIB=1 \
-s INITIAL_MEMORY=128mb \
- -s MAXIMUM_MEMORY=1gb \
+ -s MAXIMUM_MEMORY=2gb \
-s SINGLE_FILE \
-s FULL_ES3 \
-s MIN_WEBGL_VERSION=2 \
-s MAX_WEBGL_VERSION=2 \
-s ALLOW_MEMORY_GROWTH=1 \
- -s ASSERTIONS=2 \
- -s TOTAL_STACK=32mb \
+ -s ASSERTIONS=1 \
+ -s STACK_SIZE=8mb \
-DUSE_GLES2 \
-lidbfs.js \
--pre-js ../../../wasm/pre.js \
-s USE_LIBJPEG=1 \
-s USE_ZLIB=1 \
-s INITIAL_MEMORY=128mb \
- -s MAXIMUM_MEMORY=1gb \
+ -s MAXIMUM_MEMORY=2gb \
-s SINGLE_FILE \
-s FULL_ES3 \
-s MIN_WEBGL_VERSION=2 \
-s MAX_WEBGL_VERSION=2 \
-s ALLOW_MEMORY_GROWTH=1 \
- -s ASSERTIONS=2 \
- -s TOTAL_STACK=32mb \
+ -s ASSERTIONS=1 \
+ -s STACK_SIZE=8mb \
-DUSE_GLES2 \
-lidbfs.js \
--pre-js ../../../wasm/standaloneprejs.js \
# Link
# see LDFLAGS_WINCOMMON in makefile
-LDFLAGS_WINSV=$(LDFLAGS_WINCOMMON) $(LIB_CRYPTO) $(LIB_CRYPTO_RIJNDAEL) -mconsole -lwinmm -lws2_32 $(LIB_Z) $(LIB_JPEG)
-LDFLAGS_WINSDL=$(LDFLAGS_WINCOMMON) $(LIB_CRYPTO) $(LIB_CRYPTO_RIJNDAEL) $(LDFLAGS_UNIXSDL) -lwinmm -lws2_32 $(LIB_Z) $(LIB_JPEG) $(LIB_SND_XMP)
+LDFLAGS_WINSV=$(LDFLAGS_WINCOMMON) $(LIB_CRYPTO) $(LIB_CRYPTO_RIJNDAEL) -mconsole -lwinmm -lws2_32 -Wl,--stack=0x800000 $(LIB_Z) $(LIB_JPEG)
+LDFLAGS_WINSDL=$(LDFLAGS_WINCOMMON) $(LIB_CRYPTO) $(LIB_CRYPTO_RIJNDAEL) $(LDFLAGS_UNIXSDL) -lwinmm -lws2_32 -Wl,--stack=0x800000 $(LIB_Z) $(LIB_JPEG) $(LIB_SND_XMP)
EXE_WINSV=darkplaces-dedicated.exe
EXE_WINSDL=darkplaces-sdl.exe
EXE_WINSVNEXUIZ=nexuiz-dedicated.exe