@ThreeRT3D Couldn’t you have done this!! 7 months ago🤣 had to build it from scratch for my game this would have been awesome! Will def use it in the future !
Nothing, honestly. The same Rust compiles to native and to WASM with no changes and no stubs. That works because the game logic asks nothing from the machine. It keeps its own time by counting ticks, never opens files (map and rules get handed in as data), runs on one core, and has zero outside libraries. So there's nothing WASM can't provide.
It also only counts in whole numbers, so the WASM build and the native build play out a match exactly the same, tick for tick.
The renderer never calls into the game logic. Each tick the sim writes one packed snapshot of the world (positions, facing, health, state) and the WebGPU side reads it straight out of WASM memory. Player commands go back the other way as bytes. The sim ticks 25 times a second, the renderer draws at 60 fps and smooths the movement in between.
So headless is just the same thing without anyone reading the snapshot. So what that buys me: the game logic is one self-contained thing I can run anywhere, with or without graphics, and it always behaves the same. This was actually the main goal and the hardest part.
It's one codebase for everything. Browser, desktop app and test server all run the same game logic, so a rule I fix once is fixed everywhere and there's no browser version that can drift from the others.
Multiplayer stays in sync. Every machine computes a match identically, so players only send each other their commands, not the whole game state. That keeps network traffic tiny and makes cheating harder, since a machine that computes something different is detected right away.
And there's nothing to break when browsers or libraries change. With no outside libraries and no dependence on the machine, there's nothing to update, license or wait on.
The cool thing is Replays become super easy and cost a few KB to store. I could wire a 2d version of the game to it easily ( not that I will though )
How it started
In March I started with a single question: what can a browser actually do?
I grew up on the classic real-time strategy games. Base building, harvesters, tank columns rolling over a ridge, that one moment where your whole army meets theirs in the middle of the map. Those games shaped how I think about games, and I always wondered why nothing in the browser ever came close to that feeling.
So I didn't start with a plan or a roadmap. No pitch deck, no team, no deadline. Just curiosity and a lot of evenings. Can a browser run a full RTS? Can it run it well? Can it look like something you'd actually want to play in 2026, not a toy, not a tech demo?
Eight months later, the answer turned out to be bigger than the question. This thread is the story so far: what i’ve built, why I built it the way we did, and all the things I learned along the way that I had honestly never heard of when I started.
The first step was humble: see what was possible with existing open-source technology. Could a complete RTS engine be brought into the browser at all? It could. That port taught me more about how these games really work than anything I'd read: the tick loop, the order system, the pathfinding, the fog of war, the hundreds of tiny rules that make a tank feel like a tank.
Then I built my own graphics engine on top of it, because I wanted it to look like a modern game, not like 1996.
The original idea was actually AI research. I wanted to run agent-versus-agent simulations: let AI players fight each other thousands of times, watch how they learn, how they expand, how they attack. A lab, basically.
But there was one problem with that plan. Every time I tested it, I ended up playing it myself. For hours. Building bases, losing to my own AI, trying again. At some point you have to admit to yourself that you're not building a lab anymore. You're building a game. 🤣
More of this story soon 1/9
Explore Freehop
GitHub: https://t.co/8MCoL1d7rL
Documentation and demos: https://t.co/zBsLzoaOic
Freehop is open-source under Apache 2.0. Contributions, feedback and real-world integration reports are welcome.
What’s the worth of software these days anyways. Might as well opensource everything 🙈🤣
Why I open-sourced it
At some point, I realized that this problem extends far beyond Redline Wars.
Games aren't the only applications that need low-latency voice and video.
Collaboration tools, community platforms, shared workspaces, browser applications and desktop software all face variations of the same infrastructure challenge.
And many developers don't want to build and maintain their own real-time communication stack.
So instead of keeping Freehop buried inside Redline Wars, I decided to release it as an independent open-source project under the Apache 2.0 license.
It's available for other developers to inspect, use, modify and contribute to.
Freehop includes a browser SDK, signalling components, desktop integration support and tools for establishing alternative media routes.
It doesn't require developers to adopt Redline Wars or any part of its game engine.
It's a standalone library.
The current release is still an alpha. It has passed reproducible network-lab tests, but real-world connectivity across mobile carriers, consumer ISPs and restrictive corporate networks needs broader validation.
That's also part of the reason for releasing it openly.
The more environments developers can test it in, the better I can understand its limitations and improve its reliability.
Building games should lead to building useful technology
One of the things I enjoy most about developing Redline Wars is that the challenges rarely stop at the game itself.
Working on a browser-based RTS has pushed me into engine development, rendering, networking, multiplayer orchestration and now real-time communication.
Freehop wasn't originally intended to become a separate project.
It existed because I wanted to solve a real problem in my own game.
But when a solution has applications beyond the original project, I think there's value in making it available to others.
I also believe independent developers should question how much infrastructure they truly need to own and operate.
Sometimes centralization is absolutely the correct answer.
Other times, we're simply repeating an architecture because it's familiar.
Freehop is an experiment in choosing a different approach.
Build centralized systems where they're necessary. Distribute the work where they're not.
If it helps reduce the cost of running Redline Wars while enabling other developers to build their own communication features, that's already a worthwhile outcome.
And if the open-source community helps take it further, even better.
In the meantime:
Building Redline Wars led me to an interesting question: why should every conversation between players cost me money?
I’ve been building Redline Wars: Fractured Order, a real-time strategy game that runs directly in the browser, powered by a custom Rust engine and WebGPU.
The ambition is straightforward: build a full-scale RTS that people can play without downloading anything, while also supporting desktop players on Windows, macOS and Linux.
But building a multiplayer game isn’t just about the game engine, graphics, units or performance.
There’s another challenge that becomes increasingly important as your player base grows.
Infrastructure costs.
And that’s how I ended up building something entirely separate from the game.
An open-source, peer-to-peer audio and video communication library called Freehop.
The problem with being the center of everything When you build an online multiplayer game, it’s tempting to solve every problem with another server.
You need multiplayer? Add servers.
You need matchmaking? Add services.
You want voice chat? Add media infrastructure.
Video calls? More bandwidth, more infrastructure.
And eventually, you’re paying for every interaction happening inside your own ecosystem.
The game grows, and your infrastructure bill grows alongside it.
Of course, centralized infrastructure has advantages. It’s predictable, relatively straightforward to manage, and gives you control.
But I started questioning whether I actually needed to be involved in every interaction. If two players want to talk to each other, why should their audio travel through my servers?
If several players are already connected inside a match, why can’t their devices help establish and maintain that communication? And if someone is running a dedicated game node or hosting a session from their desktop, why shouldn’t that infrastructure participate too?
I want to build and operate a game, not become a mandatory middleman for every byte that moves between players.
The bigger idea behind Redline Wars
One of my architectural goals with Redline Wars is to reduce dependency on infrastructure that I alone have to operate.
The game already embraces distributed multiplayer infrastructure, with dedicated server nodes and desktop-hosted sessions forming part of the design.
Instead of assuming every match must run on machines I pay for, I want to make it possible for other machines to participate in hosting the experience.
This doesn’t mean removing servers entirely.
It means being deliberate about what actually requires centralized infrastructure. And I wanted to apply that same thinking to voice and video.
Cost reduction isn't the same as zero cost
There's an important distinction here.
Peer-to-peer architecture doesn't magically make bandwidth free.
Someone still transmits the data, processes media and maintains connections.
If a developer pays for a session host, a gateway or an optional TURN relay, those resources still have a cost.
Participant-assisted forwarding also consumes resources on the participating device.
The real advantage is architectural.
Centralized infrastructure becomes a fallback or a deliberate choice, rather than an unavoidable dependency for every conversation.
For a small independent game developer, reducing that dependency can make a meaningful difference as usage grows.
It also creates more flexibility in how an application is deployed and operated.
So another report.
After I decided to lock in, I went all-in.
Dedicated server nodes for multiplayer. A desktop app for Windows, macOS and Linux. Full browser support. A relay server, so every host can find its way to our network. And the part I'm most proud of: desktop and browser players in the same match. Someone on a Linux desktop and someone in Chrome ( best webGPU support) on a laptop, desktop and maybe iPad Pro in te future , fighting over the same ore field.
That sounds simple until you build it. Different platforms, different networks, different hardware, and every one of them has to agree on exactly what happens in the game, every single tick, for the whole match.
What started as "let's see what a browser can do" turned into a full platform: game client, simulation engine, renderer, multiplayer infrastructure, desktop builds, replay system, and our own calling service. All of it built around one goal: the classic RTS feeling, with modern technology, playable anywhere.
And now all of it is being moved onto an engine that is entirely our own.
The multiplayer model is called lockstep, and it's how the classic RTS games did it too. Here's the idea. Instead of sending the whole world over the network (thousands of units, positions, health values, projectiles, every frame), every player runs exactly the same simulation on their own machine. The only thing that travels over the network is the orders: "tank 12, move there", "build a power plant here", "attack that refinery".
The server nodes collect those orders, put them in the right tick, and hand them to every player. Every machine then applies the same orders, in the same order, at the same tick, and and ends up with exactly the same world. Bit for bit. To prove that, every machine computes a checksum of the game state and the nodes compare them. If one player's world drifts by even a single number, you know immediately, instead of discovering ten minutes later that two players are seeing different games.
Bonus: a replay is just the list of orders. Play them back through the simulation and the whole match happens again, identically. Every match, every battle, fully reproducible from a few kilobytes.
More to come 2/9
(Video of skirmish 8 player match performance testing)
Disclaimer: I’am recording with my phone so I don’t influence the fps with a screenrecorder.
And yes 24 fps is already resolved it’s between 30 and 62 but still work in progress.
1 browser tab. 0 installs. All-out war. 💥
Introducing Redline Wars: Fractured Order.
A full-scale RTS featuring base building, massive battles, multiplayer, dynamic weather, nuclear warfare, and a custom Rust engine powered by WebGPU.
🌐 Play directly in your browser. No downloads. No installs. Just war.
🎮 https://t.co/ZxIiMKMkaB (Coming soon!)
🖥️ Desktop version coming soon for Windows, macOS, and Linux.
⚔️ Cross-platform multiplayer: Browser and desktop players can battle together in the same matches.
@nichegamer@IndieGameJoe@GameStar_de@GamewithDave@BattleNonSense
#RTS #RealTimeStrategy #Multiplayer #IndieGame #WebGPU #PCGaming
Impressive, but how GPU-efficient is this really? Procedural shaders may reduce asset size while increasing per-pixel computation, shader complexity, and GPU frame time. Is this genuinely optimized rendering, or just trading VRAM usage for GPU compute? What FPS and frame times are you seeing, and on what hardware?
1 browser tab. 0 installs. All-out war. 💥
Introducing Redline Wars: Fractured Order.
A full-scale RTS featuring base building, massive battles, multiplayer, dynamic weather, nuclear warfare, and a custom Rust engine powered by WebGPU.
🌐 Play directly in your browser. No downloads. No installs. Just war.
🎮 https://t.co/ZxIiMKMkaB (Coming soon!)
🖥️ Desktop version coming soon for Windows, macOS, and Linux.
⚔️ Cross-platform multiplayer: Browser and desktop players can battle together in the same matches.
@nichegamer@IndieGameJoe@GameStar_de@GamewithDave@BattleNonSense
#RTS #RealTimeStrategy #Multiplayer #IndieGame #WebGPU #PCGaming