Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Hot Reloading #192

Closed
Matt-Is-Confused opened this issue Oct 21, 2023 · 4 comments
Closed

Support Hot Reloading #192

Matt-Is-Confused opened this issue Oct 21, 2023 · 4 comments

Comments

@Matt-Is-Confused
Copy link
Contributor

The upcoming Godot 4.2 release will include support for live reloading GDExtensions.
The Godot PR that implemented this is here godotengine/godot#80284
The Godot-cpp implementation can be found here godotengine/godot-cpp#1200

@PadraigK
Copy link
Contributor

In case it helps provide context to anyone:

My experience today (before 4.2) is that it hot reloads everything when I copy in my dylib. The only exception is when I add a new type to the #initSwiftExtension — in that case I need to tell the editor to reload the project manually. I hope the new Godot changes give us that last piece, it would be nice to never need to reload.

@migueldeicaza migueldeicaza mentioned this issue Nov 28, 2023
13 tasks
@migueldeicaza
Copy link
Owner

This patch contains:

(a) Upgrade to the 4.2 API
(b) Unrelated: locking for internal table access
(c) Hot-reload support.

https://gist.github.com/migueldeicaza/1884e40a485ade88eff8b4a4c762e0d9

@migueldeicaza
Copy link
Owner

Splitting the (b) part

@migueldeicaza
Copy link
Owner

Ok, hot reload is implemented on main, but I have not tested it, would love if someone could take it for a spin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants