Skip to content

v4.7.2.132

Choose a tag to compare

@github-actions github-actions released this 21 Oct 15:29
· 353 commits to main since this release

2dog 4.7.2.132 adds experimental WebGPU rendering and Qt Quick hosting, and fixes rendering and connection issues in existing hosts. It targets Godot 4.7.2 and .NET 10.

Changes

  • Experimental WebGPU Mobile rendering. Single-precision Windows, Linux and macOS packages now include native Dawn/WebGPU, and single-threaded browser packages support WebGPU alongside WebGL. Blazor's GodotView can select it with RenderingDriver="webgpu". Existing renderer defaults are preserved.
  • Experimental Qt Quick host. Embed Godot in a QML app with 2dog.qt and Qt Bridge for C#. Add it with dnx 2dog@4.7.2.132 add --qt; Windows supports GPU texture sharing with CPU fallback. The host requires CMake, Ninja and a C++ toolchain. Windows is tested; Linux/macOS builds and publishing are untested, and Native AOT is unsupported. See the Qt Quick guide.
  • More reliable Avalonia rendering. Prevent nested frame callbacks from leaving the view black, correct CPU-readback colors and opaque alpha, and give the automatic non-Windows FPS cap one frame of headroom above the display refresh rate to avoid competing with compositor timing.
  • Cleaner engine startup and shutdown. Fix queued macOS window callbacks across engine restarts and late C# editor hot-reload callbacks during shutdown. Failed engine initialization now reports an actionable error pointing to the native diagnostics.
  • REPL connections keep working after an early disconnect. On Windows, a client disconnecting before the listener accepts it no longer stops the listener from serving later clients.
  • Renderer diagnostics in templates and expanded guides. New FPS overlays and Blazor hosts show the active rendering method and driver. Documentation now covers WebGPU selection and limits, Qt Quick setup, and downloading matching CI packages for a source checkout.

Upgrading

Commit your project changes, then run from the Godot project directory:

dnx 2dog@4.7.2.132 update

Managed packages: 4.7.2.132. Native and tools packages: 4.7.2.44.

WebGPU is opt-in. To try it in a desktop host:

dotnet run --project MyGame.2dog -- --rendering-driver webgpu --rendering-method mobile

The experimental driver supports Mobile on single-precision desktop and single-threaded browser runtimes. Forward+, Android, double precision and threaded browser runtimes reject WebGPU; native threading remains supported. WebGPU on macOS requires macOS 13 or newer. Browser hosts need WebGPU support in a secure context and explicit boot configuration: see Web setup, Blazor setup, and adapter and shader limits.

If your host catches engine startup failures, handle InvalidOperationException; initialization previously threw NullReferenceException or a generic Exception on these failure paths.

To adopt the new renderer readouts in an existing project, manually update its FPS scene or Blazor page. The package update does not rewrite those source files. Use RenderingServer.GetCurrentRenderingMethod() and RenderingServer.GetCurrentRenderingDriverName() in C#, or their snake_case equivalents in GDScript.

Full Changelog: v4.7.2.127...v4.7.2.132