C++ in HTML5

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By notorp

I have a Godot project for HTML5. Unfortunately, the performance is poor. I profiled my code and found that the bottleneck is an algorithm that I wrote in GDScript. I have a C++ version of this algorithm, but I’m not very familiar with the C++/JS ecosystems. What would I need to do to replace the GDScript version of the algorithm with the C++ version?

:bust_in_silhouette: Reply From: eons

You cannot link libraries on webassembly, your best option (until wasm solves that problem) will be to make a module inside the engine.