4 ms·
super interesting. Is there a blog post somewhere? how much better is the performance due to rust/wasm compared to implementing the physics in JS?
by aloer 7y ago
super interesting. Is there a blog post somewhere?
how much better is the performance due to rust/wasm compared to implementing the physics in JS?
- bourgoisloic 7y agoThank you. There is not, but on the readme you can find a few links to learn more[1]. I don't have solid metrics, but using only JS for a previous attempt, I couldn't have 8 points running smoothly [2]. Now it works with 500[3]. I'm not sure whether it's because I have a better understanding of the problems now or just because Rust/wasm is way faster, but what is sure is that Rust makes it easier to write performant code, even if it's harder to learn at first. [1] https://github.com/loicbourgois/gravitle#learn-more https://github.com/loicbourgois/gravitle#learn-more [2] https://loicbourgois.github.io/treeminor/demo/heart https://loicbourgois.github.io/treeminor/demo/heart [3] https://loicbourgois.github.io/gravitle/playground.html?test=test_15 https://loicbourgois.github.io/gravitle/playground.html?test...