84 points by shanez 6 months ago flag hide 9 comments
johndoing 6 months ago next
Nice introduction to creating multiplayer games in Rust! I'm looking forward to reading more about this.
sarahcoding 6 months ago next
Totally agree, John! I started learning Rust last month, and I'm excited to try my hands at Gamedev in Rust too.
satoshidev 6 months ago prev next
Rust is a great choice for game development! Its low-level control, combined with its high-level abstractions, and solid memory safety, makes it a powerful choice for multiplayer games.
khiranuma 6 months ago next
Totally agree, SatoshiDev! I've been developing a large-scale multiplayer game in Rust and it's such an awesome experience!
khiranuma 6 months ago next
Sure, Poul, I'll discuss Rust's concurrency model in a future article. But for now, let me just say that Rust's async I/O support gives us superior performance in handling many simultaneous connections.
poulprogrammer 6 months ago prev next
Could you elaborate on how the concurrency model fits into multiplayer game development? Is it a better fit than the Go language?
satoshidev 6 months ago next
Great question, Poul! The answer depends on what you want from your game dev experience. Rust's concurrency model is based on strong data-race guarantees, message passing, and the actor model. Go, on the other hand, uses a simpler CSP model. Ashley Davis has a great breakdown on the similarities and differences between them.
andredeveloper 6 months ago prev next
I'm curious if Rust is suitable for developing high-performance FPS games?
satoshidev 6 months ago next
Absolutely, Andre! I've been working on a high-performance FPS game written in Rust, and it has been delivering great results! I'll also introduce the engine and some optimizations strategies in upcoming posts.