I'm adding mutliplayer networking to my voxel game.
I wanted to share this bug I ran into that took me a full day of detective work to solve. Reliable UDP was the root cause, because I didn't fully understand that the reason laminar recommends us to send a lot of reliable packets, is because, so packet acknowledgment are sent.
I'm using laminar networking library for rust.
github.com/TimonPost/laminar
My discord group:
/ discord
Want to support me?
Patreon: / tantandev
Monero: 43Ktj1Bd4Nkaj4fdx6nPvBZkJewcPjxPB9nafnepM7SdGtcU6rhpxyLiV9w3k92rE1UqHTr4BNqe2ScsK1eEENvZDC3W1ur
Resources (The tech I'm using)!
bevy game engine: bevyengine.org/
game_stat: github.com/TanTanDev/game_stat
physics (3D and 2D): github.com/dimforge/rapier
inspector ui (runtime tweaking): github.com/jakobhellermann/be...
hot reloading using dlls/so files: docs.rs/dlopen/latest/dlopen/
benchmarking: github.com/bheisler/criterion.rs
world generation: my own custom implementation is not open source at the moment.
other rust libraries, that I recommend:
game engine: github.com/not-fl3/macroquad
Graphics rendering api: wgpu.rs/
multithreading: github.com/zesterer/lagoon
profiling: crates.io/crates/profiling, using Optick feature
#tantan #gamedev #netcode
Негізгі бет Ғылым және технология Multiplayer programming bug BROKE MY GAME
Пікірлер: 78