You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
taking a quick look through the code, and it seems as though the code is being run through a custom rollback netcode implementation written in typescript. However, wouldn't typescript be a bit slow? It feels like it would be better to use a network library written in rust, like GGRS
The text was updated successfully, but these errors were encountered:
It's a good question and something I've been thinking about as well.
Some thoughts:
I don't think Rust would be much faster. While the rollback code is nuanced running it likely isn't a performance bottleneck.
Porting to Rust would be great because it'd make it easier to make a version of Tangle that runs on web and native.
Some logic / state would still have to live in JavaScript to help avoid extra copies of memory.
Initially I started writing Tangle in Rust but I was finding it easier to iterate on the architecture in TypeScript. Now that I've nailed down the key architectural details it may be easier to try again in Rust.
I should definitely study GGRS, but I'm hesitant to adopt it immediately. Tangle's designed for apps as well as games which leads to different priorities. Like this open issue would be a problem for Tangle: gschup/ggrs#23.
But I suspect GGRS is doing some things better than Tangle to learn from.
taking a quick look through the code, and it seems as though the code is being run through a custom rollback netcode implementation written in typescript. However, wouldn't typescript be a bit slow? It feels like it would be better to use a network library written in rust, like GGRS
The text was updated successfully, but these errors were encountered: