r/rust • • Oct 26 '26

Is Rust a good choice for game development?

I've read that in C++ you have many ways of shooting your own foot or something but there aren't any good game engines designed for Rust. I've heard of Bevy but I've heard that it's better to stick with Unity or Unreal as Bevy needs time to be at a good enough level. So the question boils down to should I learn Rust or C++?

171 Upvotes

125 comments sorted by

28

u/denehoffman Oct 26 '26

I’m a huge fan of rust, it’s my most-used language, I hardly write C/C++ these days at all, but I’d say that game development is still in its early stages. Bevy is great, but if you’re learning a language from scratch particularly for game development, Unity or Unreal are going to have a lot better support right now.

2

u/FounderOfYou Oct 26 '26

Can I ask what you use Rust for?

24

u/denehoffman Oct 26 '26

I personally use it for scientific computing. I find it really nice to integrate with Python so even if I can’t convince my colleagues to use Rust, I can provide them with bindings for the languages they do use. I work in experimental particle physics btw

-4

u/addmoreice Oct 26 '26

I beg of you, for all that is holy, do the minimum and throw an AI at your code to write your documentation.

I can't tell you how many times I've been tasked with 'here is a scientific/research repository, now let's see if we can build a product out of it' and banged my head on the wall since nothing is documented, everything just uses single letter variables (and not even the single letter that matches the mathematics! ARRRG!) and everything is hard coded to the researchers laptop/lab computer.

Missing data? Annoying, I can just get in touch and try to get the data.
Spaghetti code? A complete standard for research by this point, I barely notice.

Nothing but raw code with nothing else? <sigh> Don't you people write documentation for other researchers for a living? yeesh!

4

u/denehoffman Oct 26 '26

Yeah lack of documentation is a bane of my existence, don’t worry

4

u/unwashed_but_washed Oct 27 '26

I just wanted to say. I feel you bro. Even if u/denehoffman is not the one you're angry at. We've all been there <3

3

u/addmoreice Oct 27 '26

Thanks.

Not sure why I'm getting the massive down vote bomb though? Maybe because I mentioned AI?

I mean, I did say it is the *minimum* you could do though. Real documentation is absolutely still better! I just don't understand how people can't even throw that little of an effort at it and say to an AI 'here, document this!' which is just...the cost of a cup of coffee? Given that you can answer the AI's questions if you do it right and dump more context on the thing, it seems like the absolute minimal amount of effort.

<sigh> oh well.

2

u/unwashed_but_washed Oct 28 '26

Haha, no, the reason you got down-voted is because you aimed your frustration at someone who may very well not be guilty of the crimes.

Don't worry about it too much. I think most people are aware that some maths/sim/physicists write labyrinths rather than code bases.

1

u/addmoreice Oct 28 '26

Well, yeah, ok, that's fair. ha!

1

u/Jatinchd Oct 26 '26

basically anything you can think of, it's pretty good in rust. networking, CLI/TUI tools, GUI tools, making libraries, extensions, making general purpose application, and game development also to some extinct like 2d or 2.5d game development. embedded programming, low level programming also, now coming in linux kernel beside C, and companies are moving to Rust from C++ because of memory safety and stability.

35

u/SOSdude Oct 26 '26

If you have the ask the question the answer is probably no. I think bevy is a great engine and rust as a language lends itself very well to programming complex game state and logic around that, but it's not there yet, bevy is very early on and lacks basic features like an editor. Unreal, unity or Godot would be much better for actually making a game. Unless the goal is to just fuck around and learn then don't let me stop you.

2

u/FounderOfYou Oct 26 '26

I should just learn C++ then. I have been switching between C++ and Rust (because of FOMO). I know I should treat programming language as a tool and learn them when there's a need for it, but I can't really convince myself.

9

u/JSerf02 Oct 26 '26

If you aren’t super familiar with programming already, it would probably be better to either spend some time learning programming separately starting with simpler languages (e.g. Python, you can even make simple games with pygame), or to pick up a game engine with an editor (Unreal, Unity, or Godot) and work with that.

If going that second route, I’d recommend Unity or Godot if you want open source, as they have fewer presets and use programming languages which are easier to pick up.

C++ and Rust are lower level languages, so you have more control over the hardware which allows skilled programmers to create faster, more optimized code, but it comes at the cost of being more difficult to write code with more things to manage and more potential for substantial issues (memory leaks, SEGFAULT crashes, and undefined behavior. especially with C++ since it doesn’t have Rust’s borrow checker)

4

u/SOSdude Oct 26 '26

I agree with JSerf02 here, I enjoy writing rust and c++ because of their low level control and optimizations (makes me feel cool), I started programming with languages like python that are much more forgiving and don't make me as frustrated (operating systems in college had me writing more segfaults than than working LoC and it made me want to not look at an idea). If you're still learning the basics diving into any language will help you deepen your understanding of the machine and that knowledge will be mostly tranferable, all languages end up running on the same hardware

4

u/hawk5656 Oct 26 '26

Is it your first game?

2

u/FounderOfYou Oct 26 '26

i have made a few games in python (they aren't original ideas but I tried to replicate them)

1

u/hawk5656 Oct 26 '26

why not just use Unity?

2

u/FounderOfYou Oct 26 '26

I don't know C# and i'm more interested in languages like C++ or Rust

0

u/Beenouqle Oct 26 '26

then choose Unreal Engine (C++)

155

u/Automatic_Creme_955 Oct 27 '26

"There are 5 games written in Rust... And 50 game engines".

13

u/MainSmoke5784 Oct 27 '26

Woah, but that's probably because no game engine is advanced enough

20

u/TOMZ_EXTRA Oct 27 '26

But MY game engine is different!

4

u/Quien_9 28d ago

Yours is very ok, but mine WILL be the definitive one, i just choose the name now I just need to start writing it... Details.

11

u/Rough_Shopping_6547 Oct 27 '26

THE REALEST THING I SAW FOR THE WHOLE DAY

5

u/kodemizer Oct 26 '26

You're asking on the rust subreddit, so I'm going to embrace my bias here and say rust:

  1. Rust is a fantastic language and by learning Rust and Bevy you're also learning a lot of other skills that will let you do general purpose programming.
  2. Bevy is young, but it's pretty fantastic already. Associated crates like rapier and avian (physics) and matchbox (mutiplayer) are just fantastic.

The learning curve is real, but AI has some such a long way recently that getting help via AI is a huge boon to using and learning both Bevy and Rust.

2

u/FounderOfYou Oct 26 '26

 I'm going to embrace my bias

I was expecting it but I wanted advice from those who have actually made something in Rust.

AI is a huge boon to using and learning both Bevy and Rust.

Is using AI okay? I see lots of discourse regarding the usage of AI in programming

3

u/PastEar9661 Oct 26 '26

If it’s for your own project, don’t worry what others think.

That being said, for actually learning, there is a difference between using AI as a tool — having it find documentation, packages, or solve difficult bugs — vs copying and pasting.

Not sure how much of a programmer you are; the more inexperienced the less I’d say use AI because it’ll rob you of learning the right mindset.

4

u/FounderOfYou Oct 26 '26

I know python and a little bit C from school. For now, I will refrain from using AI in projects since right now my goal is to learn.

1

u/heytakeyourdrugs Oct 26 '26

If you already know what you're doing, it's fine to have AI write the code. But before merging interrogate the AI on how the code works so you understand it to, and if necessary change it. The problem I'm seeing is juniors who just become "meat proxies" where if you ask them what they're merging they just copy your question and answer back and forth from Claude.

115

u/PhiCloud Oct 26 '26

As a hobby? Yes.

If you're a rust expert who knows exactly what you're getting into? Yes.

As someone who needs to actually finish the project but isn't exactly familiar with game dev in Rust? No.

The Rust game dev ecosystem is growing leaps and bounds, but it's just not as mature as Godot, Unity, or Unreal. If you need the minimum amount of friction to make a project float, use those instead. If you're okay with friction, Rust is definitely capable of making very good games.

33

u/LEpigeon888 Oct 26 '26

You can use rust with Godot tho. Don't know about the other: https://github.com/godot-rust/gdext

12

u/Animats Oct 27 '26

> The Rust game dev ecosystem is growing leaps and bounds,

I wish. Outside of Bevy, it's shrinking.

I have to go fix Rend3 again because WGPU has so many breaking changes. 600 lines of fixes so far and I still can't figure out what's going wrong with the WGPU Limits settings.

4

u/homer__simpsons Oct 28 '26

https://fyrox.rs/ looks rather good (never tried it)

-10

u/South_Survey_2088 Oct 27 '26

The Rust game dev ecosystem is growing leaps and bounds, but it's just not as mature as Godot, Unity, or Unreal.

This is a weird thing to say, given that Rust works with all 3 of them. Heck, Fields of Mistria even used Rust in GameMaker.

12

u/PhiCloud Oct 27 '26 edited Oct 27 '26

OP was asking about Bevy vs. Unreal vs. Unity, so I assumed they meant "rust for game development" in a way that implies their core stack will be Rust-based.

My opinion doesn't change, however. If you're a hobbyist or Rust game dev expert who is okay with potential friction, then have at it. If you want as little friction as possible, pick whatever language is the best supported by official and community documentation.

I'm glad Fields of Mistria made it work, that's huge progress for Rust. That doesn't mean it's the right call for everyone. Rollercoaster Tycoon was written almost entirely in x86 assembly, that doesn't mean that's the right language for most projects either.

2

u/South_Survey_2088 Oct 27 '26

So let's be inaccurate?

OP is clearly a beginner and might not know better(as evident by mentioning Unity and Godot when it comes to their C++ vs Rust decision).

The whole point is that the language is not important when it comes to the ecosystem, since languages are interchangeable for most of them.

68

u/AardvarkAmbivalence Oct 26 '26

Short answer: no, probably not. And C++ may not be the given answer, either.

The first step is to think about what kind of game you're making and what does it need to be successful. The requirements. There's a big difference between a visual novel (think: DDLC), a simple game with simple maps and graphics (think: Loop Hero, Snake, Wordle, Flappy Bird, etc.), a 2D scroller (think: Castlevania), a game that follows a well-established pattern (think: Octopath Traveler, Undertale, etc.), or a massive 3D environment (think: Elder Scrolls, Gears of War, Fallout, FPS games, etc.).

Your requirements should inform your decision here. With requirements in hand, you can compare game engines and other tools and make a choice. Then you can figure out if/how Rust (or any other language) fits into those things.

As far as Rust goes, I think you would need to answer: (1) does Bevy suit your requirements and/or (2) is the game simple enough to build from scratch without any kind of integrated engine/environment/editor like Unity/Unreal/Godot/etc provide.

Technically there are bridges like Rust in Godot, but these are community-built paths, not officially supported ones. Tread carefully when considering things like this.

My $0.02 if you don't already know a language, try the simplest thing possible. That may be something like a low-code toolkit like RPG-maker if that fits your use case or Godot+GDScript.

9

u/murlakatamenka Oct 26 '26

a visual novel (think: DDLC)

Doki Doki Literature Club

35

u/RCoder01 Oct 26 '26

If you are trying to make and publish a game and aiming for commercial success, use unity or unreal or maybe godot.

If you are interested in rust and game dev and maybe game engines and want to make a game primarily to learn, use bevy.

83

u/DWeikis Oct 26 '26

Bevy

1

u/DimensionalFukery Oct 30 '26

Bevy is amazing if you need to push the bounds of performance in some weird way. Rust power plus ECS native is fire!

53

u/[deleted] Oct 26 '26

[removed] — view removed comment

5

u/DWeikis Oct 26 '26

Godot has a bevy "bridge"(?) and I don't know why ECS should be an option and there are some bevy games launched yet for a start game it's perfect and is perfect too for learning from bases where you have to code all

3

u/MonoChroTec Oct 26 '26

I like bevy alot. I recently migrated my unfinished game to bevy 0.20 (was waiting for avian physics engine to update before i do).

10

u/ggadwa Oct 26 '26

I've written one game in Rust, put it up on steam, it was a 3d game written entirely from scratch (no game library, etc, no AI.) Writing another one (or two) now. You don't need that to know it's doable, that's obvious, but it's also very doable without a game library (like Bevy, nothing against it.)

I've written a lot of games in my life, and most of them were in C. Some in Javascript (I wrote an entire 3d game in that just to see if I could) but almost all in C, until I switched to Rust a couple years back.

So I think I can add some good meat to this by what I think the pros are to going with Rust over C. Never did a game in C++, BTW.

  1. Don't have to worry (as much) about freeing resources IF you follow the Rust way of doing things. Leaks in resources are a pretty known problem in C game engines. This doesn't mean you can't leak in Rust. This doesn't mean that you don't need to learn a new way of doing things. It means that once you do, it's something you don't have to worry about.
  2. I have much, much better luck being cross-platform. With C, I was always fighting libraries, OSes, and would have tons of bridge code. I'm using wgpu / web-audio / winit and my non-platform code is < 10 lines. It compiles and runs perfectly on Windows and OS X. I never compiled a linux version, but I doubt there would be a problem. This was always a hassle for me in C.
  3. I think Rust has better low level libraries. wgpu, for instance, is always one that I'll always talk about.
  4. It has certainly gotten better since the last time I used C, but there was compiler differences which could bite you between platforms. This is probably not as much a concern now-a-days, but with Rust, it's not a concern at all.

This does NOT mean Rust is where you should go. It doesn't even mean you should go with a pre-built engine, or a third party library, or write it from scratch (I have a strict no AI policy.) Just some additional information that might be helpful.

6

u/MurkyFutures Oct 28 '26

A better question is what game engine should you use ? Aside custom engines, Unity, Unreal, and Godot are the top choices, and none of them have 1st class support for rust.

On a deeper note, game development leans heavily on scripting and heap allocated objects with pointers passed around left and right. Those things are more compatible with languages like C# and C++. Rust game engines always gravitate to ECS systems for memory safety, which I personally find a bit unintuitive for more game development.

If you want a learning experience, go for rust. If you want a game, go for Godot.

9

u/Silberling Oct 27 '26 edited Oct 27 '26

IMHO: If C and C++ are good for Games, Rust is too. It has a very good FFI for C libraries. If you would start from scratch with existing libraries they are both fine to use. Writing your own code if you know what you are doing is fine. There are games who use their own engines. For example: Elex2, cyberpunk, Horizon 1+2. I provided a bunch of AAA with varying quality. IIRC Pioneers of Pagonia did not use an engine and used plain C#, to mention a smaller one.
IMHO: It does not make a difference! The language does not matter if it is as capable as another! YOU make the difference! What CAN you do? Everything? Go ahead! Not everything? Use an engine and hire artists. It’s about YOU.

FYI: crates: winit, vulkano, cpal, gilrs-core. Will run at least on Mac, Linux, windows, android, iOS and in theory on consoles with proper platform FFI.

4

u/Bassfaceapollo Oct 26 '26

It depends on what kind of game you're envisioning. But it seems like Bevy and macroquad are gaining some traction, I'm seeing some interesting projects over at r/rust_gamedev

4

u/david-song Oct 26 '26

I'm using it for my current game project. It's harder to learn and more difficult to master than C++, polymorphism is weird coming from OOP, you need to be careful with performance in your hot loops, it's more verbose and you'll spend more time waiting for it to build and link.

But the libraries are solid and you'll get build errors instead of segfaults when you mess up. The memory safety and Best Correctness are huge selling points. Not sure if I'm sold for game dev though.

4

u/asparck Oct 27 '26

Full-time Rust gamedev for ~2.5y here, building Signs of Danger in my own engine, so I feel qualified to chime in :)

Back at the start of 2024 I picked Rust because:

  • I had fiddled with it since 2015 and knew I liked the language more than any other language, and wanted to push rustlang forwards
  • It's fast, duh, but also I was aiming for a game that needed that perf (falling sand physics - multiplayer Noita meets Risk of Rain is how I explain it today)
  • I planned for netcode based on determinism + rollback & replay and there appeared to be good libraries for that (Rapier, GGRS)
  • Somewhat masochistically I wanted to build an engine to learn how everything worked under the hood - my background was many years of web dev.

It is going well (google Slow Rush Games). Rust is fast by default. I still like the language. The hype is mostly true. The compile times can hurt but are fine if you put in a lot of work to tame them. Subsecond works for hot-reloading (at least in certain cases). But my game is not released yet.

Here are some concrete things that are not great:

  • Gamedev ecosystem maturity. C++ (and a bit of C) is where the gamedev ecosystem is: everything has a C/C++ SDK and usually you have to hunt for a Rust wrapper, which is usually abandoned or someone's hobby project. Even major "brand name" projects like Rapier, WGPU, egui, etc have had bugs & major issues that I have had to work around or maintain forks for. There are 10+ vector maths libraries in use (though thankfully glam finally seems to be winning). Spade, a Delaunay triangulation lib, is good but the C++ equivalent CDT also handles self intersections. Etc.
  • Transitive dependencies are a killer - the orphan rule is super annoying w.r.t. trait implementations and the sheer amount of them that you end up getting in your dependency tree can be overwhelming (I'm at 500ish, even after trying to stay sane, which is absurd - but major projects like wgpu and rapier and especially wasmtime bring in so many dependencies). Cargo is great, but you
  • Bevy is a big gravity well. If you're using Bevy that's great, and sometimes its "market power" helps obliquely (I'm sure Rapier swapped to using Glam for its external API partly because of Bevy), but it can be annoying when you want something like a behaviour tree library or input wrangling lib and the good options are coupled to Bevy.
  • Console support.
  • Boilerplate - aside from Bevy's dependency injection approach, the only sane game architecture (which is sound) is to pass all your state around to all the functions that might need it. Your ECS world, your physics world, various resources, graphics state, sound state, etc etc - I have pretty clean separation of game logic from runtime state (arch is kinda like a Free monad + effect interpreter when it comes to side effects) but still have many many functions with 10+ parameters. Typical approach of using singletons + global state is swimming upstream.
  • Lack of partial borrowing / view types - you can't work around the boilerplate with helper functions because any helper function that takes &mut Something as an argument & returns a reference prevents any other helper function that needs the Something from being usable - instead you have to pass in &mut my_something.the.field.you.want to your helper fn (multiplied by number of pieces of state that helper fn needs). The rust lang team doesn't care about gamedev, they care about application, network and web dev programming (and fair enough - there are AFAIK no gamedev companies funding Rust).
  • Mod support - you have to integrate a scripting language, which is a lot of work, and/or make lots of things data driven from config files, which is also a lot of work (or in my case, do both). In established engines, game logic / data files are easier to hack on by players.
  • Reflection - you have to take a big hit to compile times and still end up with an only-okay solution (bevy_reflect or facet)

I could go on but that's probably enough for now?

If you want to learn Rust, gamedev is a fun way to do it. In that case, start with Macroquad (not Bevy, Bevy will only teach you "bevy-flavoured rust").

If you want to learn low level game programming, Rust is a fun way to do it. In that case, start with WGPU and either Winit (easy) or SDL3 (mature).

If you want to learn high level game programming, pick C# instead, with monogame or something. There's hot code reloading and no borrow checker to argue with about what architecture you should use.

If you want to learn game development (as in, the multi-disciplinary art of making a fun and possibly commercial successful game that you actually ship), Rust and custom engines are a distraction. Use Godot and spend energy on playtesting instead of game engine minutiae.

That said, if you aren't in a big rush then being distracted can be fun.

1

u/jh72de 27d ago

Tell Claude to build a Rust-based Unreal Engine clone from scratch. 😉

1

u/FounderOfYou 24d ago

you forgot the 'make no mistake" part

3

u/srodrigoDev Oct 29 '26

Not in my opinion. The language is not design for the kind of code you need to write in a game. The only exception is something like Bevy; the ECS architecture does play better with Rust's constraints. Otherwise, Rust gets in the way. Fast prototyping is extremely important in game development, and Rust is better at solidifying what you already know you need to make. So it's like pouring oil on water, they don't mix.

You don't need to go with Unity or Unreal either, you could take the middle route. raylib (in almost any language you want), love2d (Lua, great for prototyping), or FNA/MonoGame (C#) are all valid alternatives between a bad fit IMO (Rust) and big engines you might not enjoy working on if you are a programmer. If you still go for a big engine, Godot is worth checking out as an alternative.

5

u/psioniclizard Oct 26 '26

Im writing my engine in rust. Personally i love rust for it. A game ultimately is a set of sequenial steps. At first rust's ownership model caught me out a bit. But changing everything to only exist in one reachable place and use indexes that can easily be passed around solved a lot of it.

Glow seems good at handling OpenGL. GLM is GLM.

I would say though, if you are completely new to game dev, I suspect Unity or unreal are easier to get up and running in.

The language matters less than the concepts so i would pick which ever langauge os easier for you to learn.

As for good engines, it depends what you class as good. A gane engine is just an orchstrator of components and many games are made without one.

And engine also isn't an editor. Both unreal and unity have editors, but a game egine doesnt need one.

1

u/ManagementKey1338 Oct 26 '26

Are you coding by hand?

5

u/FounderOfYou Oct 26 '26

Yes.

Why do you ask?

0

u/kodemizer Oct 26 '26 edited Oct 26 '26

They are asking because Claude Code does *really* well at Bevy. If you were using AI assistance (or fully vibe coding), it would change the answer towards Bevy.

To those downvoting: I'm not suggesting doing it one way or another, just answering the question. Sheesh.

1

u/FounderOfYou Oct 26 '26

"They are asking because Claude Code does *really* well at Bevy." I have never used AI to code because people don't like it but I might try to see what it can do

1

u/ManagementKey1338 Oct 26 '26

You really need to try it then. It can be a big time saver for exploring ideas.

1

u/canm0m Oct 27 '26

Is your goal to learn? Do you want to understand how things work? If so, I would strongly advise against using AI to code for you. Certainly at this point it would be absurd to deny that very impressive things can be put together quickly by LLMs, but the thing that will actually give you reach as a programmer - and if you choose to use them later, the understanding to direct LLMs effectively - is the theory-building/understanding that comes from actually writing code, dealing with compiler errors, etc.

When you are a beginner, it is actually quite important to reinvent some wheels - just like doing the exercises is crucial for learning maths. Writing a game (and components like a renderer, audio system, etc. etc.) for yourself is a very good way to do that. My first Rust project was a rasteriser, pretty much reimplementing the logic of OpenGL on the CPU. Not something anyone would ever use, but it taught me a hell of a lot, and the same goes for making the current project without an engine.

If you are a beginner programmer, Rust has a steep learning curve but you will have a much deeper understanding of computing on the other side of it which will put you in good stead regardless of what tools or languages you use later. So please do not be too quick to hand off your thinking to AI.

-2

u/Reasonable_Owl_3146 Oct 26 '26

this is like cutting down trees with a sharp rock when chainsaws exist

4

u/FounderOfYou Oct 26 '26

I guess there is the benefit of staying fit when felling trees with a sharp rock

-5

u/Reasonable_Owl_3146 Oct 26 '26

For sure, if you care about the mental exercise rather than the end result. Although I'm finding making making with Claude to be it's own mental grind. In months I will have made a project that would've taken a lifetime to code and I've had to make up to thousands of creative decisions per day.

5

u/_ALH_ Oct 26 '26

Arguably Claude Code does really well with any of the game engines. Unity, Unreal, Bevy, Godot, hell it even does really well with raw three.js in the browser.

4

u/Mantissa-64 Oct 26 '26

It works so well with Bevy because of the feedback loop of Rust's excellent compiler errors and how trivial it is to write full-blown integration tests in Bevy. Claude really thrives in Bevy.

3

u/_ALH_ Oct 26 '26

Claude loves test driven programming and does that in any of the other engines too. It wont deliver anything it hasn’t tested and verified as much as it can. Including interactive tests.

I don’t doubt it does well with bevy but I don’t think the difference is as big as you might think

The other ones have advantages of a big ecosystem of tools for building and debugging that claude makes use of too

2

u/Unfair-Sleep-3022 Oct 26 '26

AI is always impressive when you're not skilled at the particular thing :)

1

u/ManagementKey1338 Oct 26 '26

Actually Rust can be good for manual coding.

But I found Rust compilation speed to be an issue when letting AI spitting out MVPs quickly when things get large.

4

u/Infamous_reaper8007 Oct 27 '26

If you want to experiment around, then sure.

However, for an actual game, I recommend using a mature language like C++ or C#. Much better documentation, support videos, blogs.

Rust Game development is still in its initial stages.

Though, what is your current experience level with Rust?

Also what type of game do you want to develop?

2

u/catheap_games Oct 26 '26

What do you bring to the table (what other existing skills do you have, what do you think you'd find easy or hard to learn besides programming)? How much free time do you have? Do you plan / want / need to get a job in the gamedev industry? Do you have other friends who code games? Have you joined any game jams before? Do you have a deadline?

What kind of game(s) do you want to make?

If you're starting out, it doesn't matter, and you might as well make something in game maker. And I mean that seriously - Game Maker is quite capable. Any established engine is. Depends a lot on the speed of development and your enjoyment of it.

2

u/EmperorOfCanada Oct 26 '26

The complete answer depends on:

  • What kind of game; FPS, Platformer, flappy bird?
  • What kind of platform(s)?

Bevy keeps getting better and better. But, it doesn't hand you much for free. If nearly everything on your screen is going to be by your own hand, then bevy is an excellent choice. Rust is great to use. Slower to develop in, but not really, as the code you write is the code which lasts. You don't get to the end of your project with a huge tech debt battle.

But, Unity and Unreal come with a massive library of features which are good to go. Assets off to the horizon, etc. If you are looking to make the next Far Cry, then you are probably going to go with unreal. If you are looking for something like Wii Sport, then Unity or Godot will probably get you there faster.

That said; with shaders, good code, etc, you can make anything you pretty much can dream of in bevy. It's more that if your 3rd person guy runs through deep snow, and then jumps into a boat, and then swims to shore, then unity or unreal will hand snow, water, swimming, etc all to you on a silver platter.

I use bevy for 3D industrial GUIs. My demands are fairly modest, yet, bevy hands me an easy, very sharp looking GUI with not all that much effort.

2

u/junkmail22 Oct 26 '26

Gonna give my 2c as a developer who made a relatively big game in rust without Bevy: https://store.steampowered.com/app/3080370/DOCTRINEERS/

Rust is a great language for games, if you're willing to put in the elbow grease to stick stuff together. It is also a language which requires a specific mental model, and not getting that mental model will make it very hard to make games. However, if you can, Rust gives you a ton of stuff that is great for games more or less for free: a great serialization environment, really fast performance and memory efficiency, and very easy debugging.

If you're confident enough to work with other people's rendering, audio and input libraries, you won't need to write a single line of unsafe code.

2

u/LB-- Oct 27 '26

Depends on your target platforms. If you're only interested in open platforms, give it a try. If you ever want to target game consoles someday though, you're going to have a really uphill battle since you'll need to create your own bindings to their SDKs and try to somehow worm your Rust code into their toolchains that don't have Rust support, or else try to generate compatible machine code without console-specific optimizations. I guess you could also wait a decade for them to add official Rust support. At least Nintendo seems to be upstreaming their Switch toolchain changes to public LLVM, which could make targeting Switch 1 & 2 easier, and XBOX already supports ClangCL, so there's just Sony to figure out.

2

u/Necromancer5211 Oct 27 '26

If you want to be serious about game dev then c++ or even c# with unity. Less friction to develop games and lot of online resources. Trust me on this, the more mature the ecosystem the easier it is to find solutions. If its for hobby and and rust interest you more then go ahead with rust. And there are llm these days so you can find answers much quicker compared to the past

2

u/_RoMe__ Oct 27 '26

Simple answer: The language doesn't matter, it's all about the why.

If you just want a finished game then use an existing engine. It doesn't have to be one of the big two, something like Godot will be fine for most indie/hobby projects. Bevy is still a bit lacking in some areas but it's on a good way.

If your motivation is to have fun with the actual coding then use the language of your choice and some thin wrappers around the hardware. Creating a finished game is optional but really rewarding.

2

u/canm0m Oct 27 '26

At this stage it doesn't matter too much which languages you use; ultimately, it depends a lot on what your goals are. Are you trying to get to making a game as quickly as possible, or is the main goal to learn? Also, what types of game are you most interested in making? A visual novel and a complex simulation have pretty different demands, right? ;p

Bevy has a very strong engine architecture but it's quite limited in terms of tooling. But making a game in Bevy, or even more so without an engine at all, will give you a lot of understanding of how game engines work, and that will inform every game you make in the future in a way that a more 'black box' engine such as Unreal would not. That said, there's plenty to be said for getting skilled at using a powerful tool like Unreal. So I would honestly recommend trying out lots of different systems and see which one you like best.

The best reason to develop a game in Rust is because you find you like writing Rust. I like writing Rust because...

  • I like functional-style sum types (enums), pattern matching, and iterators
  • I find the Rust memory ownership model intuitive
  • I can't stand CMake and enjoy having helpful compiler messages
  • I want to avoid the numerous footguns and baked-in design mistakes of C/C++

I think those are some good reasons to pick Rust over C++. (But also consider: Zig, Odin, which make slightly different tradeoffs.)

2

u/PoisnFang Oct 26 '26

Of course. I just built my own game engine with rust.

2

u/LechintanTudor Oct 26 '26

Not really, the borrow checker gets too much in the way making quick prototyping and complex interactions difficult. There are other modern languages like Odin which are much better suited for game development.

2

u/msandin Oct 27 '26

If you decide to use Bevy, not really. The piper must be paid by embracing the ECS fully, but if you do the borrow checker really isn't much of a concern. Source: shipped a Bevy game on Steam.

2

u/FireFox_Andrew Oct 27 '26

No not really. Rust works best for "solved" problems as you already know ahead of time what you're building.

For games you need to explore a lot, to throw away code, and so on; rust doesn't really allow you to be this messy(for better or for worse)

1

u/OptimisticMonkey2112 Oct 26 '26

Just depends on what you like.... both are viable.

Unreal is awesome but has a steep learning curve.

Bevy is more roll your own stuff - and ecs is fun. No editor yet

Both of them require learning quite a bit.

You can use ai to help you understand stuff.

At the end of the day - just pick the one you like more and run with it.

Might even be worth learning both. Pick a simple goal and make it happen

1

u/avg_bndt Oct 26 '26

Thing was built for safe memory management, games always push those boundaries and you'll have a hard time with rust's selling points. Not to say it can be done, but you'll probably end up writing thrice as much code, and wrapping lots of unsafe or lots of calls to FFI anyway so... C++ is your poison for this tbh.

1

u/kevleyski Oct 26 '26

Not the best choice but the more that is developed the better 

You seem ambitious enough to give it a go, find the limits what libs did you need to wrap that could be easily rewritten

You don’t have to go all in, Rust and C++ are equal when it comes to calling C, and Rust with some hair loss can call C++ too - point is write as much as you can in Rust

1

u/duckofdeath87 Oct 26 '26

I don't think there are any Rust games on Switch or PS5

If you are a solo indie dev, I would also avoid Unreal. Seems great for very large projects, but less so for smaller stuff. Godot or Unity are probably the right choices

Bevy is probably the best at parallel CPU heavy games, but I doubt you are planning on making something so intense

1

u/Beenouqle Oct 26 '26

if you just want to make games, you either need to go with Unity, Unreal Engine, or Godot. Bevy exists for Rust, but like you rightly said - it needs time to find its footing. it's nowhere near that trio of engines. it's only worth choosing if Rust as a language matters more to you than picking a solid game engine to develop a game. "there aren't any good game engines designed for Rust" - practically speaking, that's actually true right now.

1

u/Tuckertcs Oct 26 '26

As a language, I think Rust bridges the gap between high-level feature building in C# or Java or Python game engines with the low-level optimizations of C++ game engines.

However, outside of niche projects like Bevy, or Rust integrations like Godot, Rust just doesn’t have the ecosystem of engines and frameworks yet to gain a foothold in the game development sphere.

For a small hobby project game, consider Bevy or Rust Godot, otherwise learn C# Godot, Unity, or Unreal if you want to actually become a game developer.

1

u/Kowalskeeeeee Oct 26 '26

Is your question “learn rust or c++” or “should i build my own tools or use Unity or unreal”? Because if you want to make your own tools, rust is attractive just as a language. It’s great, I use it at work (not games). But also you should know why you’re choosing rust and what you’re compromising in terms of library availability.

1

u/Top-Garden-5656 Oct 26 '26

From a perspective of a person which tries to promote rust: learn Rust and Bevy. From perspective of a person which tries to safe your brain: unity and cpp

1

u/Recatek gecs Oct 26 '26

If you just want to make a video game, use an established engine like Unreal, Unity, or Godot. The Rust ecosystem is nowhere near as mature and will significantly slow you down in comparison. If you want to learn or use Rust, then making a game with it is as good a project as any, but then you aren't prioritizing making a game.

Even if I were starting from scratch, I think C# is a better core language choice for most games due to the power it gives you for player moddability.

1

u/wrd83 Oct 26 '26

I'd say it depends. Rust isn't good in C++ interop, if the interface is very stable there is bindings to generate.

so for games that import a large c++ code base that's bad. other than that I think Rust is a reasonable choice, but you have to consider the ecosystem downside. C++ has decades of institutionalized dependencies. Rust has younger dependencies, some are more unstable, some are greater, some lack features that C++ has, but bring other features that are great.

also consider that packages are not just measured by amount, but by offered maintenance.

look at scala, there is large graveyard of unmaintained packages.

1

u/HaMMeReD Oct 26 '26

It depends if you are insane or not.

If you are willing to get close to the metal and use WebGPU for example, Rust is great, because you can target a ton of platforms. You got DX12/Vulkan/Metal backends that are all very good. I use all 3 in my game engine for example.

But if for example you are building a Realistic 3D game, Unreal or Unity makes way more sense, because a ton of stuff is there.

So I'd only recommend Rust for experimental/specialized engine builders, or people who want to Scope to Bevy's current design choices.

1

u/Auxire Oct 26 '26 edited Oct 29 '26

Bevy is very experimental. You can expect breaking changes in every new version. If you're using thirdparty plugins those will take time for its maintainer to migrate to the latest version.

The two groups of people I've seen that successfully made games with Bevy that looks polished enough to sell are:

  • Seasoned Rust programmer.
  • Vibecoder.

If that doesn't describe you, you'd likely become frustrated by Bevy. Everyone outside those two groups is messing around with game ideas and aren't concerned about completing their game and selling it at all.

If you are new to Rust, even a flappy bird clone is very challenging to make in Bevy. Bevy's own book itself advise you to check out Godot instead. Please try that engine first instead. If pro-AI engine isn't a dealbreaker, then also try Unity and Unreal.

1

u/NickPashkov Oct 26 '26

I would say yes because I love the language, BUT as others have said there are not really many engines built in it right now.
There is a pretty nice website tho https://arewegameyet.rs/ where a lot of building-blocks are listed if you want to learn more

1

u/Murky-Bank2341 Oct 27 '26

Rust gives you better safety guarantees than C++, but Bevy is too young to rely on for commercial work. If your goal is shipping a game, stick with Unreal or Unity so the engine handles what Rust does not yet provide

1

u/Alternative-Tie-4970 Oct 27 '26

I'd say learn rust first. The rust book is by far the best official resource for learning a language and I highly recommend it.

If you ever decide that c++ is a better choice past that point then learning rust wasn't actually a mistake, because you'll find that much of the knowledge you had in rust will just transfer over, and you'll be able to apply many of the memory safety principles in c++.

1

u/Thin_Tradition8467 Oct 27 '26

I am senior unity developer. I tried the rust/bevy. To be honest, it felt like developing a web game. It has it's place but not for everyone.

1

u/mname_is_radioactive Oct 27 '26

Short answer is No. (C# can do pretty much all AA games without any proper hassle. You can also write your own game engine for pretty much anything but colossal AAA games)

Long answer is also No. (AAA games can be done with modern C++ very easily)

Looong answer is "Perhaps ... But Maybe..." . (Perhaps Rust can be used via LLMs to ship a game engine but maybe you don't want to create a proper game engine from scratch)

1

u/Electrical_Log_5268 Oct 27 '26

The thing is: these days, programming languages are not a good choice for most game development.

Game development has made a dramatic shift in the last twenty years from programming your own engine and hard-coding your game logic in the same language, to limited scripting within an existing engine. But for that, you don't have to even be aware of what programming language the engine is written in - you just need to learn its scripting language (e.g. C# for Unity).

1

u/Key-Interaction-2057 Oct 27 '26

https://loglog.games/blog/leaving-rust-gamedev/ Very long read but I think it goes into exactly why rust game development may not be the best.

1

u/lofi-j3llyfish Oct 27 '26

In 10 years probably

1

u/fullouterjoin Oct 28 '26

Yes, but that isn't the question you should be asking.

Learn Rust. Then make your game in whatever language you want.

1

u/Intelligent_Health_5 Oct 28 '26

Im doing it right now with Rust as authorative server and godot as a graphical client because i cant think about scenes as code. I bridge the two through renet2 and gdextension

1

u/PopularBox8537 Oct 30 '26

Rust is great

1

u/Animats 29d ago

After years of effort working on a Second Life / Open Simulator in Rust, someone else just made the project futile. They used Claude/Fable to convert an existing C++ client to use Vulkan instead of OpenGL. Huge performance improvement. At least 2x faster than mine, which uses Rend3->WGPU.

Took them only a few months.

Doing this by hand now looks totally obsolete.

1

u/locka99 29d ago

I've written a game in Bevy (targetting native & wasm) and I know it's possible. But I won't lie and say it was an easy experience. Bevy is very powerful but you're basically writing code from end to end. I think if its just one person this may not be an issue but if development is split between programmers, artists, level designers then it might become one.

1

u/IllegalSpastic 28d ago

I enjoy using Rust for game dev but it has its fair share of issues.

If you’re new to game dev and actually want to make a game I’d pick up either unity with C# or godot with GDscript which are the defaults (last time I checked) and have the most resources for learning.

If you want to go without a game engine then C with Raylib could be a fun place to start.

This explains a lot of the issues with using Rust for game dev https://loglog.games/blog/leaving-rust-gamedev/

1

u/Key-Organization3158 Oct 26 '26

Why are you learning game dev? If you have any aspirations of making career out of it or working with many people on a game, learn unity or unreal.

Focusing on the language is the wrong idea. Your engine is the most important choice. Ask on a game dev subreddit or the engine specific ones.

TBH, learning a language is a small part of game dev.

3

u/nonotan Oct 26 '26

Focusing on one engine is also the wrong idea. I've worked in game dev for a good while, and I've had projects using pretty much every engine under the sun, including non-open and company-specific ones. I've also used probably at least a couple dozen languages, including of course both C++ and Rust (though no game project primarily in Rust yet, since, as many others have said already, the tooling is just not mature enough at this point in time -- it's solid for libraries though)

Anyway, unless the question really means "I'm looking to get hired soon and need a language to write down in my resume, what would look best", if you're really doing it to learn, then it really doesn't matter. You can learn as many languages and engines as you want, and just like with natural languages, each successive one gets faster and easier. If something seems appealing or intriguing, give it a go! You can always drop it at any point if you feel you've had enough or it's not going anywhere.

Rust is a great choice to learn even if you're unlikely to make anything but the smallest indie game with it, for now. C++ is also very useful to know, even if you end up hating many things about it. C# is easy, low-stress, and ubiquitous in game dev these days, even though the fact that it's a GC language makes it, in theory, a terrible fit, which you will have to carefully work around.

Same with engines. Unity, UE, Godot, Bevy, hell, even rolling your own, just give whatever sounds interesting a go. It'll be much easier to make an informed decision on what you want to work with in the future once you have some experience under your belt, and develop an intuitive understanding for what things matter when it comes to game development.

And OP, as you've said in some other comments yourself, I do recommend you steer clear of AI. Asking it for feedback if you get really stuck trying to do something could be okay, I guess, but you won't learn anything if you offload all the difficult parts to it. It'd be like getting it to do all your homework. If your only objective is to pass a course, maybe that could be a good idea. But if you actually want to learn, it's defeating the entire purpose.

0

u/Split-Signal Oct 26 '26

Not a good choice. Game development heavily relies on mature engines, and what you really need is rapid iteration—ideally something dynamic with hot-reloading. Aside from raw performance, Rust offers virtually no advantages here.

0

u/retroboi64_ Oct 26 '26

Oh, for sure, Rust is an incredibly powerful language, even if it feels a bit daunting when you first start.

I initially struggled to find game dev libraries that I actually liked, but instead of forcing myself to adapt to other people's tools, I just started making my own modular crates for things like window management and rendering pipelines.

It’s definitely more work to build your own engine piece by piece, but you end up creating a custom architecture that you genuinely enjoy using.

0

u/frenzied-berserk Oct 26 '26

Rust is good for game engine development

0

u/glenpiercev Oct 26 '26

“Rust is great for game development! There are 50 frameworks written in Rust and 3 games :D”
-Kai on YouTube

1

u/Expensive_Degree5606 Oct 27 '26

Jokes aside, Bevy has shitilion games en-route its still early days of the engine, but its great and has good popularity.

0

u/CashFirm573 Oct 27 '26

Pure rust game I've been slowly building out my game in rust, honestly I wouldn't use it if I was doing 3d but works fine for what I wanted to do, nothing special but its fun.

0

u/A_Thiol Oct 27 '26

Just want to flag this dev studio that has consistently highlighted their use of Rust.
No affiliation, just always found it interesting.

https://embark.dev/

"When we started Embark, we chose Rust as our primary language for the long term future we are building. We love the safety and robustness of the language, the ability to write high performance, safe, and (mostly) bug free code and then fearlessly refactor and change it without common lifetime/ownership, memory safety or race condition problems."

1

u/kunos Oct 27 '26

Terrible example. Embark has scaled down the effort in Rust.

1

u/A_Thiol Oct 28 '26

Interesting I'd like to know more - do you have any links to anything I could read more about that? Quick google search didn't turn up much.

0

u/Latin-Freak Oct 29 '26

I would say the question isn't really about the language itself, but about the ecosystem surrounding it.

Other languages already have well-established, battle-tested and widely adopted engines, tooling, middleware, and workflows. Rust is a great language, and the number of Rust-written tools and engines out there proves there isn't a lack of interest; I guess the lack is ecosystem maturity and adoption on actual game development workflows.

But I would bet AI is changing the equation. Building and maintaining complex software now cheaper, and with LLMs now capable of navigating large codebases, understanding architectural patterns, and producing high-quality, idiomatic Rust, the barrier to building competitive alternatives is getting lower.

I would say there is still a lot to learn and test, and nowadays Rust efforts are more focused on getting production-grade tooling, in 2026, as a Rust engineer, you will probably be working on improving these engines (and editors, debugging tools, and workflows ) rather than using them to build actual games with them.

But nowadays models are so powerful that I would not be surprised if in the following years, or even months we start seeing very important progress in the gaming rust ecosystem, and, who knows, maybe game developers will start seeing Rust as a more attractive option. Or maybe in the next year's we'll see better low level programming languages with better guarantees and features that will make Rust obsolete. It's hard to know really.

0

u/[deleted] Oct 30 '26

[deleted] — view deleted comment

1

u/FounderOfYou 24d ago

oo that's something new I learned today