This addon is an addon for implementing rollback netcode in Godot. This is based on the netfox, and it uses a GDExtension that boosts the performance by running core functionality in C++. This project aims to be a drop-in replacement for the original netfox addon.
Download the netfox-boost zip from the latest GitHub action or from the Releases page. Extract the contents and add them to the res://addons/ directory of your project.
If you already have netfox installed, make sure to remove the netfox.internals addon because its functionality is baked into the netfox-boost GDExtension.
This addon supports Godot 4.5 and up. Some of the GDExtension API may be missing in older 4.x versions, which can cause the addon to not work.
After cloning your own copy to your local machine, make sure to initialize the godot-cpp git submodule via git submodule update --init.
To generate documentation, run the following command inside the demo folder.
godot --doctool ../ --gdextension-docsYou can develop your own extension with any text editor and by invoking scons on the command line, but if you want to work with an IDE (Integrated Development Environment), you can use a compilation database file called compile_commands.json. Most IDEs should automatically identify this file, and self-configure appropriately.
To generate the database file, you can run one of the following commands in the project root directory:
# Generate compile_commands.json while compiling
scons compiledb=yes
# Generate compile_commands.json without compiling
scons compiledb=yes compile_commands.json