Skip to content

FAQ ​

How is 2dog different from godot-dotnet? ​

They solve opposite problems:

  • godot-dotnet puts .NET in Godot through a new bindings layer for native extensions.
  • 2dog puts Godot in .NET: your application hosts the engine as a library.

2dog still uses GodotSharp. It changes only the process structure:

Classic Godot with C# (godot-mono):

godot-mono            <- the engine process drives everything
├── loads GodotSharp
│   └── runs your code
└── loads GDExtensions

2dog:

your .NET application  <- your process drives the engine
└── loads libgodot
    ├── loads GodotSharp
    └── loads GDExtensions

When to use which ​

Use godot-dotnet to write native extensions in .NET. Use 2dog to do these things:

  • Embed or package Godot in a .NET application.
  • Run tests with dotnet test.
  • Add .NET testing and tooling around an existing game.

Will 2dog use godot-dotnet in the future? ​

Probably. 2dog will change when godot-dotnet can replace GodotSharp in practice. In mid-2026, godot-dotnet has only early basics and not the full capabilities of GodotSharp. For this reason, 2dog stays on GodotSharp.

Is 2dog a replacement for GodotSharp? ​

No. 2dog embeds GodotSharp and Godot's C# source generators. GD, Node, [Export], signals, and other C# APIs work as usual. Only the owner of the process changes.

Why is the library a separate package (2dog.engine) instead of part of 2dog? ​

A dotnet tool package cannot also be a PackageReference (NU1213). Therefore 2dog.engine is the library, 2dog is the tool, and 2dog.templates provides the dotnet new template. We release all three packages together. The tool and the dotnet new template produce the same output. See 2dog add.

Why does the browser build never exceed my display's refresh rate? ​

Browser hosts run Godot's frame loop on requestAnimationFrame, which the browser calls once per display refresh. Godot's vsync setting has no effect on the web, and application/run/max_fps can only lower the rate. The browser also composites the canvas once per refresh, so extra frames would never reach the screen.

To measure uncapped performance, remove the browser's own limit:

BrowserSettingNotes
Chrome, EdgeStart with --disable-frame-rate-limit --disable-gpu-vsyncClose every browser window first, or pass a separate --user-data-dir
FirefoxSet layout.frame_rate to 0 in about:config-1 (default) follows vsync, 0 renders as fast as possible, any other value is a fixed rate
SafariTurn off Develop > Feature Flags > "Prefer Page Rendering Updates near 60fps", then restartRaises the 60 fps cap to the display rate, such as 120 Hz on ProMotion screens; there is no uncapped mode
bash
chrome --disable-frame-rate-limit --disable-gpu-vsync --user-data-dir=/tmp/2dog-bench http://localhost:8080

Use these for benchmarks only, and restore the defaults afterwards: uncapped rendering keeps the CPU and GPU busy and drains batteries. To see the Safari setting, first enable "Show features for web developers" in Safari's Advanced settings.


Do you have a question that this page does not answer? Ask on Discord or open an issue on GitHub.

2dog is Free and Libre Open Source under the MIT License.
2dog is not affiliated with or endorsed by the Godot Foundation.
Godot is licensed under the MIT License; the Godot logo is by Andrea Calabró under CC BY 4.0. @icons made by Voxy under the MIT License.
Continuous Integration compute graciously supported by Blacksmith.