You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[wasm] Set flutter_runtime_mode in tools/gn to_gn_wasm_args #193406
The engine/src/flutter/tools/gn build script ignores the --runtime-mode argument for WebAssembly (--web / wasm) targets. As a result, Wasm builds (including wasm_release / skwasm / Web Impeller) implicitly evaluate flutter_runtime_mode as "debug" globally inside GN even when --runtime-mode=release is passed.
For Web Impeller (Wimp), this evaluates impeller_debug = true (IMPELLER_DEBUG=1), causing debug tracing mechanisms (such as RenderPassGLES::EncodeCommandsInReactor executing synchronous gl.CheckFramebufferStatusDebug(GL_FRAMEBUFFER) 50+ times per frame) to pollute release artifacts and cause severe frame-bound GPU stalls in release Wimp targets.
Search out/wasm_release/args.gn or inspect the GN evaluation tree.
Observed Behavior
flutter_runtime_mode defaults to "debug", activating IMPELLER_DEBUG=1.
Expected Behavior
flutter_runtime_mode evaluates to "release", de-activating IMPELLER_DEBUG and yielding an optimized Wasm payload free of synchronous GL verification commands.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
gaaclarke commentedon Sep 28, 2026
Moving to us since it has to do with impeller compilation.
[wasm] Set flutter_runtime_mode in tools/gn to_gn_wasm_args (flutter#…
github-actions commentedon Oct 15, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.[wasm] Set flutter_runtime_mode in tools/gn to_gn_wasm_args (flutter#…