Re:Show HN: Zaplib – Speed up your webapp with Rust+Wasm
by Unit520 on Friday April 08, 2022 @11:25PM
(#30965039)
That's exactly the stack I use as well: C++, OpenGL and Dear Imgui compiled via Emscripten. You can take a look at Hexmap [0] which is built this way.
All in all the performance is great for highly interactive stuff that does some fair amount of client side data processing.
Re:Show HN: Zaplib – Speed up your webapp with Rust+Wasm
by janpaul123 on Friday April 08, 2022 @03:03PM
(#30961182)
Very cool! We do throttle our animations to the screen's refresh rate using requestAnimationFrame, so you shouldn't necessarily get 100% CPU unless the animation takes up the entire "frame budget" (on my machine the main example in the introduction is more like ~40-50% CPU on Chrome).
Re:Show HN: Zaplib – Speed up your webapp with Rust+Wasm
by rozgo on Friday April 08, 2022 @02:57PM
(#30961109)
Usually not an issue with very interactive apps. We have a similar workflow targeting web and desktop, but Rust + WASM. Using BevyEngine for real-time apps, and Yew for web apps.
Re:Show HN: Zaplib – Speed up your webapp with Rust+Wasm
by janpaul123 on Friday April 08, 2022 @03:04PM
(#30961201)
Oh cool; you're also using this for robotics I presume (based on your Twitter profile)? Makes sense; lots of data to process there.
If you are interested, checkout my Github template repo [1] - it contains a few examples:
[0] https://github.com/ocornut/imgui
[1] https://github.com/ggerganov/ggweb