Show HN: Zaplib – Speed up your webapp with Rust+Wasm
I've been using a similar stack (C++ and WASM) to build some simple applications and I enjoy it very much. For the UI components, text rendering and layout I use Dear ImGui [0] as I am very familiar with it and it allows me to implement GUIs very fast. The biggest convenience is that you can run the same code both as a native application and as a web app. The biggest drawback is you usually get 100% CPU usage when there is an active animation in the WebGL canvas because you need to redraw everything (similar to the OP's example).<p>If you are interested, checkout my Github template repo [1] - it contains a few examples:<p>[0] <a href="https://github.com/ocornut/imgui" rel="nofollow">https://github.com/ocornut/imgui</a><p>[1] <a href="https://github.com/ggerganov/ggweb" rel="nofollow">https://github.com/ggerganov/ggweb</a>