r/rust_gamedev • u/seventeencups • 23h ago
Are We Game Yet? - Call for new maintainers
r/rust_gamedev • u/seventeencups • 23h ago
r/rust_gamedev • u/Jilminator • 3h ago
Hello!
I've been working on a pixel-art tower defense meets roguelike card drafts and Survivors-like meta progression. I'm so excited to share it, and I would love any and all feedback! I am preparing a demo consisting of the first 3 stages. I've just added persistent saves and 3 difficulty levels along with meta perk upgrades.
Tech Stack: Rust, Bevy 0.20, Avian2D physics, and custom Tiled isometric elevation sorting, compiled directly to WASM.
Playable demo in browser: https://jilminator.itch.io/coral-td?utm_source=reddit_rust_gamedev&utm_medium=social&utm_campaign=story_ocean_trench_w3_t1473
r/rust_gamedev • u/1wairesd • 11h ago
Hey everyone!
I've been working on a project called Voxaryn, based on the open-source Rust Minecraft project Horizon.
My goal is to explore how much of Minecraft's server-side simulation can actually be parallelized across CPU cores without breaking game behavior.
So far, I've been experimenting with parallel entity ticking using Rayon.
The basic idea is to group interacting entities into independent "islands" and process those groups on separate threads.
In some controlled experiments, this showed promising results, including up to 3.9x speedup for the parallelized workload with 12 threads.
But things get much more complicated when entities are densely packed together.
For example, testing 2,000 cows in one dense group creates a completely different situation compared to splitting them across eight separate pens.
When many entities interact with each other, splitting the workload becomes much harder, and simply adding more threads doesn't solve the problem.
I've also been working on deterministic correctness checks and reproducible benchmarks, because performance improvements mean nothing if the simulation starts behaving differently.
I use AI coding agents extensively for implementation and testing, while focusing on directing experiments, reviewing results, and understanding the technical decisions.
The project is still experimental, and there's a lot left to figure out.
I'm sharing it because I'd love to hear from people with experience in parallel game loops, ECS architectures, or multithreaded simulation.
How would you approach parallelizing entity updates when many entities depend on each other?
GitHub (experimental P2.5 branch with more recent implementation and research):
https://github.com/1wairesd/Voxaryn/tree/experimental/entity-islands-p2.5
The main branch is currently behind the experimental development work.
I'm planning to keep sharing progress, experiments, and failures as I continue working on it.
r/rust_gamedev • u/legend-of-alan • 15h ago
Hey all, I'm trying to share this across a few places and hopefully my free tool saves you some money if you're building a Rust agent for your game!
TLDR; Code Mode is a feature that Anthropic announced a few days ago that can save >60% of token costs for agent tool calls. Since token cost dominates agentic software for people like me building Spookery, my AI RPG game engine, I built a Rust tool called Ghost Mode to open source this technique (and also because it's fun to build stuff!). You can find it at the link above! It's a drop-in for your existing MCP servers/clients with only a little boilerplate.
Details;
So I don’t know if you saw the news from Anthropic, but they released this feature called ‘Code Mode’ for Claude Code. Basically it ‘batches’ LLM tool calls into scripts instead of constantly asking the LLM for the next tool. They claim 95% token savings (Haven't benchmarked it myself yet, but independent research claim more like a 60% savings, depending on workload). Up to now, this is mostly used by established coding agent products like Claude Code and Codex.
I immediately became obsessed, because I wanted it for Spookery to run AI-powered RPG games & private servers. So I took a look around, and there’s not much in Rust. There’s a few libraries like with TypeScript and other backends, but they’re like 5x slower (execution) to 100x slower (startup) compared to claims of modern options like Pydantic’s Monty (Python backend written on Rust).
So I went temporarily insane, didn’t sleep, and built/released my own in the days I had off… I call it Ghost Mode. It’s MIT-licensed, because I wanted to share it with others. To use it, just run:
cargo add ghostmodeGive it a try if you’re looking to save tokens in your new Rust agents for your games (or if you just want to flatter me by testing it). If anybody tries it and likes it, I think we can build a really powerful Code Mode implementation together (extend it for other languages, add new features, etc.).
I hope you get something useful out of it.
And if you get nothing out of this, just keep an eye for code mode in your code harnesses soon. I think Anthropic’s is still in the experimental features… But I think it’ll change the game if it’s as powerful as the research says.