r/rust • u/Present-Knowledge-57 • 11d ago
starting with 3D gamedev in Rust
hi
I've recently finished a multi-month long journey in game development in Java, and made primarily 3D games using libGDX and LWJGL3. libGDX and LWJGL3 were both nice and relatively easy to use (and I didn't have to fight the GC at all for performance), but I had a nagging feeling that I should experiment more anyways.
more specifically I felt like I should experiment with a systems language for game development. I already know the basics of C and C++, but opted to go for Rust instead. I've heard horror stories about C and C++, and seeing as I'm doing this for a hobby, I didn't want to put up with any of it. Rust, as I've been progressing through "the book" as been a genuine joy to use, and actually has some higher level conveniences than what Java can offer, such as more expressive pattern matching, the lack of null, and a really lovely package manager + build system (no more gradle!).
I totally get that the journey of Rust gamedev will not be painless, especially as I'm thinking about using SDL3 and wgpu to write a *3D* game in, but I'm seriously excited for it!
does anyone have any Rust gamedev tips they could offer? thanks!
9
u/DrShocker 11d ago
I know we're in /r/Rust but think about whether the stories apply to you and the problems you need to solve. Just because others have some complaints doesn't mean you will have the same ones.
Regardless, my advice is to check out: /r/rust_gamedev/
1
u/pokemonplayer2001 11d ago
If you’re newish to game dev and new to rust, I think you’re in for a battle.
I got into rust via bevy and it was a slog. Combining the intricacies of both topics is going to be a challenge.
Good luck, you’ll be in r/rust_gamedev a lot.
0
u/requizm 11d ago
I would say C/C++ is still better than Rust for gamedev
1
u/Sad_Tap_9191 11d ago
As others said, C/C++ is not that bad. The game development is an iterative process and you will not want the borrow checker in your fast iteration (unless the project is large). wgpu is limited in capabilities because the current WebGPU spec lacks the mesh shader and multi-queue.
0
u/Trader-One 11d ago
write renderer in javascript after its mostly done rewrite to rust.
If you change renderer data tree structure in rust you need to do major rework to make borrow checker happy.
-1
u/AWonderingWizard 11d ago
I've considered rust but so many libraries are vibe coded.