GDExtension vs C++ Modules for exporting to various platforms

Godot Version

4.3

Question

I am making a game that uses a complex algorithm, and want to optimize it by coding it in C++ rather than GDScript. I’ve gathered that I can use either GDExtension or Custom Modules to do so. I know that using C# limits the platforms you can export your project for, but I couldn’t find information about GDExtension or Modules. Do either tools limit the platforms you can export your game for, and do they limit them in different ways? Thank you in advance.

There are no limits, but be aware of dependencies that could limit platform compatibility.

Introducing GDNative's successor, GDExtension.

The only real difference is that gdextension is intended to be portable. think plugins. while modules do not take this into consideration and need to be compiled with the engine.

Oh awesome, thank you!