diff --git a/docs/Caveats.md b/docs/Caveats.md index f82fbbfe74..ab8ea4d0f3 100644 --- a/docs/Caveats.md +++ b/docs/Caveats.md @@ -258,6 +258,8 @@ If running under Firefox and you hit "out of memory" on dev console, close the e To run the binary (after building) you should be fine with `node ./eden-cli.js`. For obvious reasons no Qt frontend is available on WASM, support for Vulkan is done charily via [llvmpipe2wasm](https://github.com/Devsh-Graphics-Programming/llvmpipe2wasm). +If you run into the error "acorn.js can't be found" check [this associated issue](https://github.com/emscripten-core/emscripten/issues/13368), the fix in short is `npm --global install acorn`. On FreeBSD you could run `npm` under root, or you could do the sane thing and do `sudo chown -R $USER /usr/local/lib/node_modules/ /usr/local/bin/` (remember to restore permissions afterwards!) unless you wish to run `npm` under root which is generally a bad idea. + 2026-06-09: As of writing, no Dynarmic-based JIT is possible on this target, full interpreted emulation is the only reasonable option. While there is some efforts on making a JIT like [here](https://github.com/wingo/wasm-jit) or [here](https://wingolog.org/archives/2022/08/18/just-in-time-code-generation-within-webassembly), the result is so latency expensive we're better off using an interpreter instead. ## Windows diff --git a/src/yuzu_cmd/CMakeLists.txt b/src/yuzu_cmd/CMakeLists.txt index 8db965b80d..616b865e73 100644 --- a/src/yuzu_cmd/CMakeLists.txt +++ b/src/yuzu_cmd/CMakeLists.txt @@ -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() diff --git a/tools/miniserver.js b/tools/miniserver.js old mode 100644 new mode 100755 index 6f4bd35a14..f16d463573 --- a/tools/miniserver.js +++ b/tools/miniserver.js @@ -1,4 +1,4 @@ -#!/usr/local/env node +#!/usr/bin/env node // SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later @@ -21,51 +21,61 @@ const server = createServer((req, res) => {