Multithread

Prerequisite Knowledge

Visual Studio

Download OpenSiv3D for Web Multithread-Compatible Version

Download OpenSiv3D-Installer-wasm-mt.exe from GitHub Releases and execute it.

Add Build Options

On the project opened in Visual Studio, open project options and add -pthread to compiler and linker options.

Visual Studio Code

Download OpenSiv3D for Web Multithread-Compatible Version

Download OpenSiv3D-wasm-mt.tgz from GitHub Releases and extract it to a suitable folder.

Copy all the folders under the extracted folder Package to the folder OpenSiv3D and overwrite it.

Add Build Options

Add -pthread to both .vscode/Compile.rsp and .vscode/Link.rsp .