# Godot can now load any C++ library without rebuilding the engine

Original title: Using any C++ library in Godot

> Hacker News story 49890051 · language: en · submitted 2026-09-29
> Web version: https://zeli.app/story/49890051
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 167 · by [czoido](<https://news.ycombinator.com/user?id=czoido>) · 💬 66
[original](<https://blog.conan.io/cpp/conan/gamedev/godot/cmake/2026/09/29/Using-Any-Cpp-Library-In-Godot.html>) · [HN discussion](<https://news.ycombinator.com/item?id=49890051>)

## Summary

Godot's GDExtension system lets you load native C++ code into an unmodified engine, but managing godot-cpp and third-party libraries across platforms is painful. Conan now packages godot-cpp 10.0, so you can declare it alongside libraries like flecs and build consistently for every target. The post walks through a Swarm node that simulates 100,000 particles fleeing the mouse cursor, all running in C++ inside a Godot scene.

## Key quote

> Writing the C++ code is the easy part. The hard part is the build: godot-cpp has to match your Godot version, and every library you add has to be compiled for each platform you ship to.

## HN discussion (66 comments)

### [valorzard](<https://news.ycombinator.com/item?id=49890189>)

> If you know rust, the Godot rust bindings for GDExtension are also really good and let you use any Rust library in Godot (including tokio and async rust if you really want)
>
> https://godot-rust.github.io/

### [voodooEntity](<https://news.ycombinator.com/item?id=49890793>)

> Was playing arround recently building an RTS with godot until i just hit the ceilling of what i could handle with gdscript performance wise.
>
> Than started to move alot of heavy logic to c++ simulation : tedious indeed but the results speak for themself.
>
> Basically allows me to use godot for things like menus dialogues and similar stuff while running the true heavy work in a c++ simulation.

### [MeteorMarc](<https://news.ycombinator.com/item?id=49890741>)

> So, what profiling support is available to find the critical parts of your GDscript or C# code. Before needlessly jumping into c++ hassle for performance reasons? Tfa addresses functional reasons, which is ok.

### [Asmod4n](<https://news.ycombinator.com/item?id=49890859>)

> I am building something similar, with c++26 reflection. So any language can use c++ libs with only a few lines of boilerplate in a lifetime and memory safe way where possible. And where it’s not possible to infer the safe lifetime of an object i got a small .toml file which tells the lib how to safely use those functions.

### [zerr](<https://news.ycombinator.com/item?id=49890281>)

> \> // Copy the position of every entity into the MultiMesh buffer
>
> So, is a zero-copy impossible due to world (C++ vs Godot) boundaries?

---

## Cite

- Page: https://zeli.app/story/49890051
- Date: 2026-09-29
- Source: blog.conan.io (https://blog.conan.io/cpp/conan/gamedev/godot/cmake/2026/09/29/Using-Any-Cpp-Library-In-Godot.html)
- Hacker News: https://news.ycombinator.com/item?id=49890051

## Other languages

- zh: https://zeli.app/zh/story/49890051 · markdown: https://zeli.app/zh/story/49890051.md
- ja: https://zeli.app/ja/story/49890051 · markdown: https://zeli.app/ja/story/49890051.md
- ko: https://zeli.app/ko/story/49890051 · markdown: https://zeli.app/ko/story/49890051.md
- de: https://zeli.app/de/story/49890051 · markdown: https://zeli.app/de/story/49890051.md
- es: https://zeli.app/es/story/49890051 · markdown: https://zeli.app/es/story/49890051.md
- ru: https://zeli.app/ru/story/49890051 · markdown: https://zeli.app/ru/story/49890051.md
