ERAS
November 6, 2026

Going native

Eras now has a native Mac app, built in a few days on Godot and our Rust server. Why we left the browser, what we measured, and the light it let us add.

Until this week, Eras ran in a browser, or in a desktop app that was a browser underneath. It now has a native Mac app, and that's where the game goes from here.

Why leave the browser

We'd looked at going native a few days earlier and said not yet. Keeping two clients in step was the biggest cost, and the browser was holding up. Then armies got big (see Ten thousand), and three things changed.

First, we were fine dropping the browser client altogether. Invites become links that open the app, or offer to download it. Second, the game server had already been rewritten in Rust, which took weeks off the estimate. Third, the goal became armies of thousands. In the browser, every soldier was about 190 objects and a full animation on one JavaScript thread. A native app gets threads, less memory, and steadier frames.

So we measured it, in the real game: one local server, a fresh world, a fixed camera over a battle of four realms, and the same Mac for both clients. With 1,000 soldiers fighting, the browser took 62.6 ms a frame and the app 9.5 ms. With 3,000, the browser took 164 ms and the app 13.4 ms. With nobody fighting at all, it was 13.3 ms against 8.6 ms.

The app did it on about half the CPU, and in around 1.4 GB of memory where Chrome used 2.1 to 3.6 GB. To be fair to the browser, much of its gap in that battle came from one thing we could have fixed: riders weren't part of its crowd renderer, so each horse was drawn on its own. With soldiers on foot only, the browser came within a few milliseconds of the app. But the rest of the browser's limits, one thread for the game and the memory a browser takes, aren't ours to fix.

One simulation, two programs

The app is built on Godot, with the game's own code in Rust. That Rust is shared with the server: the same code generates the land from the world's seed, so the app builds the whole island itself instead of downloading it, and the same code steps your movement. We checked that last part over 50,903 moves on 36 routes. The server refused none of them.

The app speaks the server's existing protocol, so we could check it against the browser client move for move. Six hundred scripted rounds of the server's state, decoded by the app: no differences. From there it was a port, feature by feature: the land and the light, people and their animations, combat, gathering and building, the map, horses and canoes, sound and menus. The first build was published on Thursday, signed and notarized, and it updates itself.

Past the web

At first the goal was for the app to look exactly like the browser. Once it did, we asked what native could add that the browser couldn't afford. We tried ten things, each behind a quality setting, shot each one before and after, and timed it. Six made the cut.

The land's own shadow. The sun's shadow map only reaches 70 to 100 m round the camera, so no mountain ever cast its shadow across a valley. Now, on background threads, the app marches a line toward the sun from every 8 m of the island, out to 4 km, and keeps how far each spot sits under the land between it and the sun. That one texture shades ground, trees, roofs and people alike, with a softer edge the further the shadow falls. A bake takes about a third of a second and never touches the frame. When the sun moves, the old and new shadows blend over two seconds, so the shadow slides.

A clearer golden hour. With the sun low, the haze thins by half and the valley fog by a little more, so the light stays warm but far ridges, lakes and towns carry.

Before
After
BeforeAfter
A lookout over the lakes at 17:30, before and after

Light in the air. With the sun low, light now hangs in the air between the trunks, and screen-space rays fan out from the gaps between them. At night a campfire glows in the air round it.

Before
After
BeforeAfter
Into the rising sun at 7:00

Water that reflects. Lakes now mirror the shore, the trees and the hills behind them. The water also got a pass of its own: river edges follow the bank instead of zig-zagging, the sand along the sea shines where a wave has just drawn back, and mist rises at the foot of waterfalls.

Before
After
BeforeAfter
A lake's edge at dusk: a jagged waterline before, reflections after

The sun's disk now glares over whatever is in front of it, the way it does in the browser. And trees got solid: you used to be able to walk your eyes into a trunk. Now you stop at the bark, while leaves still part as you push through.

All of it together costs about half a millisecond a frame at High. The ones we dropped are worth naming too. Ambient occlusion and screen-space bounce light barely showed, because the world's shade is mostly soft sky light already. A bigger, denser draw distance for Ultra cost the most of anything and was hard to tell apart. Real-time global illumination changed almost nothing in the forest for over a millisecond. All four are still in the code, switched off.

The browser client has stopped getting new features. Everything new now lands in the app first.

More from the dev blog