Skip to content

Commit

Permalink
Disabled MultiThreading on WASM
Browse files Browse the repository at this point in the history
  • Loading branch information
Arlodotexe committed Sep 25, 2023
1 parent 3132391 commit ef77ff0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ProjectHeads/App.Head.Wasm.props
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
<WasmShellMonoRuntimeExecutionMode Condition="Exists('aot.profile')">InterpreterAndAOT</WasmShellMonoRuntimeExecutionMode>

<!-- MultiThreading: https://platform.uno/docs/articles/external/uno.wasm.bootstrap/doc/features-threading.html -->
<WasmShellEnableThreads>true</WasmShellEnableThreads>
<WasmShellPThreadsPoolSize>8</WasmShellPThreadsPoolSize>
<WasmShellEnableThreads>false</WasmShellEnableThreads>
<WasmShellPThreadsPoolSize Condition="'$(WasmShellEnableThreads)' == 'true'">8</WasmShellPThreadsPoolSize>

<!-- MultiThreading SharedArrayBuffer: https://platform.uno/docs/articles/external/uno.wasm.bootstrap/doc/features-additional-files.html -->
<WasmShellIndexHtmlPath>$(MSBuildProjectDirectory)\wwwroot\index.html</WasmShellIndexHtmlPath>
<!-- MultiThreading SharedArrayBuffer workaround: https://platform.uno/docs/articles/external/uno.wasm.bootstrap/doc/features-additional-files.html -->
<WasmShellIndexHtmlPath Condition="'$(WasmShellEnableThreads)' == 'true'">$(MSBuildProjectDirectory)\wwwroot\index.html</WasmShellIndexHtmlPath>

<!-- Pre-compression: https://platform.uno/docs/articles/external/uno.wasm.bootstrap/doc/features-pre-compression.html -->
<WasmShellCompressionLayoutMode>InPlace</WasmShellCompressionLayoutMode>
Expand Down

0 comments on commit ef77ff0

Please sign in to comment.