TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: WebAssembly runtime embedded in Godot game engine

32 点作者 ashtonmeuser超过 1 年前
A WebAssembly runtime embedded in Godot game engine projects. Interact with Wasm modules from GDScript.<p>Accessing Wasm modules via GDScript provides the following benefits. - Sandboxed environment allows safely loading zero-trust mods&#x2F;extensions to a project. - Single target means that Wasm modules can be built from any language e.g. Rust, Go, AssemblyScript and the single binary can be run on all platforms. - Fast execution compared to GDScript allows for offloading compute-heavy operations or running bots&#x2F;mods&#x2F;etc. at high FPS.<p>This might be useful for loading mods, bot AI, or entire games (similar to the WASM-4 fantasy console), offloading compute-heavy tasks without using GDExtention C++, or just writing some game logic in your favourite Wasm-supported programming language.<p>Supports Wasmtime, Wasmer, and other runtimes that adhere to the Wasm C API. Basic function and global access, memory operations via the standard StreamPeer interface, and limited WASI support. Installable for both Godot 3 and Godot 4 as a GDExtension&#x2F;GDNative addon or as engine module.<p>Happy to hear feedback and&#x2F;or receive PRs!

1 comment

extraduder_ire超过 1 年前
How does this perform when exported to the browser?<p>Really looking forward to more language support&#x2F;features in godot regardless.
评论 #37917106 未加载