News Liste Pax Dei

Tech Insights: our Building System
Pax Dei
27.09.24 12:01 Community Announcements
Hello Paxians,

We're amazed every day by the beautiful structures you've built since our first Alpha, the building system is one of the most highly engaged in Pax Dei so far. As such, we thought you might be interested in knowing a bit more about the tech behind the system - which is probably one of the most complex systems in the history of video games.

Currently, the hottest home valley zones have around 400,000 building pieces. With a total of 24 home valleys per world, there are many millions of pieces in each world. The typical build rate is 10,000 new pieces per week in a single home valley.

Our replication system



In a networked multiplayer game, the replication system is used to ensure that all the players have a consistent and up-to-date game state. In other words, It receives the input information of a player and distributes it to other players.

The building data size for a single home valley is currently around 30MB. That doesn’t sound like a lot, right? But let’s say we have 100 players - we are now talking about 3GB of data that needs to be managed by the server, the client (the player’s machine), and our replication system.

This amount is so massive that it needs very special handling in all stages of the game’s pipeline. If we use Unreal Engine replication for gameplay, we can’t use it for the buildings. The backbone of our building replication is the Repli backend server - aptly named ‘Repli’ - which sends build data from the world database to the clients and the servers.

When logging in, both the client and the server connect to Repli, which first sends the current full state of the zone. As we said, initial data is currently around 30MB in the largest zones. After the initial state replication, the client and the server listen to new build events from Repli. We use gRPC streaming as a communication channel to build events from Repli. We won’t go into detail about gRPC here but, simply put, it ensures all parties involved, the server, Repli, and the clients, communicate correctly and understand each other.



Adding a building piece: under the hood



Here is simply what happens after a player swings their construction hammer:

[olist]
[*] The client sends a build request to the Unreal server;
[*] The server does some permission checks to verify if the build request is allowed;
[*] If the server allows it, it then sends the build request to the backend;
[*] The backend does its own checks to allow or refuse the build request;
[*] Once allowed, the building piece is added to the main world database;
[*] The build event is sent from the database to our custom Repli backend server;
[*] Repli will send the build event to both the server and the client;
[*] The server and all the clients in the zone - here, the Home Valley - spawn the building piece;
[*] The server does the integrity check that the structure still holds;
[*] The client calculates integrity as well to display it in the UI.
[/olist]

Making the building visible to all



Massive data replication is one of many challenges. After the client has all 400,000 pieces of the home valley, the 30MB package we discussed earlier, we need to make them visible. Your computer must draw them, and here comes the second big challenge.

It would be impossible to use a system that draws 400,000 pieces one after the other. We need something tailored to suit our needs. The two key elements we use are instanced static meshes (ISM) and area managers.

ISM are used to draw several, even thousands, of pieces in one draw call, instead of drawing them one by one.

Area managers, the parallelepipeds boxes in the video below, control all props and building pieces in their areas. They handle the creation and destruction of building pieces and props, integrity calculations, and other things, including the ISM.

The area managers look at all the standard building pieces in its area - not the crafters nor the containers - and sorts them spatially. Then, they insert them in custom instanced static meshes. And now the magic can happen.

That being said, we are not done yet. In addition to buildings, we have containers, crafters, and decoration pieces that need to be drawn, and most of them have their own gameplay functionality. All these props are standard Unreal actors, but contrary to the buildings you can see from pretty far away, they spawn only around the character inside the streaming distance.

In the video below, you can see how the area managers are working and how the props become visible or not. Each box you can see is an area manager. As explained above, each area manager controls its own area for ISM and integrity, but they also control the visibility of the prop actors - crafters, containers, and other decoration pieces. Depending on the position of a character and the streaming distance of its client, the manager will activate or deactivate the visibility of all its prop actors.

In the video, red shows the area managers that deactivate the props’ visibility and cyan the active ones. Purple shows the ones pending ongoing activation, and magenta the ones pending ongoing deactivation.

[previewyoutube=ZQG9MZJavwo;full][/previewyoutube]

There is another type of prop that needs special treatment: lighting sources. When your character is close to them, the lights are running through the Unreal Lumen lighting - the dynamic global illumination system from Unreal Engine 5 - to improve immersion. However, the lights are switched to lightweight light cards at a certain distance to improve performance. Some valleys have more than 20,000 lights that you can observe simultaneously!

Of course, we also have some constraints on the server side. One single Unreal Engine server can handle only a maximum of 150-200 players, and if more players want to be in the same village, then we need to create some server instances. That’s another area where having some custom systems helps a lot. Our replication system allows the buildings to be visible across all the server instances and in real time! If one player builds in one server instance, then all the players in the other server instances see the building changing at the same time.



A few last words



Spawning all this building stuff around the player without visible lag is complicated and is done over several seconds, even minutes, sliced into many frames. Also, as you might have guessed from our step-by-step process above, the integrity calculation is a very complex process. Our servers also stream world content, so integrity calculation needs careful setup so that all supporting landscapes are there before they even start. Creating only physics states for pieces needs to be done without delay, and after that, querying overlaps from physics and actual integrity calculations need to be done iteratively.

Now you know why when logging in, you often can see the landscape first, then the buildings, and finally the props.

Players have been building much faster than we initially anticipated. The whole system has seen many optimization passes so far, and we still have many tricks up our sleeves. The current system should work fine until around 500 000 pieces. After that, we will start seeing new issues that must be solved. Good news, though! We already have plans to scale the system to 1 000 000 pieces per zone. But, that is a story for another time.

In the meantime, you can keep building and follow these tips from players who have mastered our systems and environment to create gorgeous structures!

Pax vobiscum,
The Mainframe Team
Logo for Pax Dei
Release:18.06.2024 Genre: Massively Multiplayer Online Entwickler: Mainframe Industries Vertrieb: Mainframe Industries Engine: Unreal Engine 5 Kopierschutz:keine Infos Franchise:keine Infos
Einzelspieler Mehrspieler Koop

Aktuelle Steam News
Neue Steam News in der ePrison Datenbank

Pax Dei 1.0 Has Launched
Pax Dei
16.10.25 15:12 Community Announcements
Pax Dei 1.0 Patch Notes & Known Issues
Pax Dei
16.10.25 15:11 Community Announcements
Pax Dei 1.0 - Shard List
Pax Dei
02.10.25 13:28 Community Announcements
Your Creativity, Your Rewards - Just Pax Dei
Pax Dei
30.09.25 12:33 Community Announcements
Pax Dei 1.0 releases October 16.
Pax Dei
29.09.25 15:10 Community Announcements
Patch Notes & Known Issues - 25/9/2025
Pax Dei
25.09.25 10:39 Community Announcements
Autumn Content Update
Pax Dei
24.09.25 06:37 Community Announcements
Raiders of Lyonesse | Patch Notes
Pax Dei
10.09.25 12:01 Community Announcements
Verse 4: Raiders of Lyonesse is coming on September 10
Pax Dei
09.09.25 12:04 Community Announcements
PvP System Changes: Everything You Need to Know
Pax Dei
29.08.25 12:04 Community Announcements
UI & Item icons - Upcoming update
Pax Dei
14.08.25 12:00 Community Announcements
Hotfix - 12/08/2025
Pax Dei
13.08.25 11:45 Community Announcements
Pax Dei - The journey so far
Pax Dei
12.08.25 12:00 Community Announcements
Verse 3 Part 2 is now live
Pax Dei
06.08.25 13:00 Community Announcements
Everything About Monetization After Early Access
Pax Dei
23.07.25 12:12 Community Announcements
Patch Notes - 03/7/2025
Pax Dei
03.07.25 10:08 Community Announcements
Patch Notes - 26/6/2025
Pax Dei
26.06.25 10:02 Community Announcements
Hotfix - 18/6/2025
Pax Dei
18.06.25 15:17 Community Announcements
Audio Q&A - Verse 3
Pax Dei
17.06.25 13:10 Community Announcements
Building Issue Messaging
Pax Dei
13.06.25 12:44 Community Announcements
Hotfix - 13/6/2025
Pax Dei
13.06.25 10:31 Community Announcements
Path of the Adventurer - Patch Notes
Pax Dei
11.06.25 10:52 Community Announcements
Path of the Adventurer is Coming on June 11
Pax Dei
06.06.25 13:03 Community Announcements
Path of the Adventurer Q&A
Pax Dei
05.06.25 13:45 Community Announcements
Spotlight - Upcoming Crafting Changes
Pax Dei
30.05.25 12:10 Community Announcements
Clarification on the upcoming RPG System
Pax Dei
27.05.25 14:16 Community Announcements
Spotlight - The new RPG system
Pax Dei
23.05.25 14:27 Community Announcements
Clarifications: Playing Pax Dei without a subscription
Pax Dei
16.05.25 14:03 Community Announcements
World Changes Coming with Verse 3: Path of the Adventurer
Pax Dei
16.05.25 12:19 Community Announcements
Playing Pax Dei without a subscription
Pax Dei
13.05.25 14:49 Community Announcements
Upcoming wipe - Skills reset and items removed
Pax Dei
07.05.25 11:49 Community Announcements
Upcoming wipe - Your concerns about the RP Shards
Pax Dei
05.05.25 14:01 Community Announcements
Upcoming wipe - Clarifications
Pax Dei
02.05.25 11:10 Community Announcements
Easter Surprise Patch - Patch Notes
Pax Dei
23.04.25 07:54 Community Announcements
Easter Surprise Patch Coming on April 22!
Pax Dei
17.04.25 10:09 Community Announcements
Migration Update: Upgrading from Amazon RDS Postgres to Amazon Aurora
Pax Dei
31.03.25 12:00 Community Announcements
The Road Ahead – March Update
Pax Dei
28.03.25 13:00 Community Announcements
Hotfix - 25/03/2025
Pax Dei
24.03.25 14:44 Community Announcements
Hotfix - 14/03/2025
Pax Dei
14.03.25 13:08 Community Announcements
Plot Cleaning & New EU Shard on March 14
Pax Dei
13.03.25 16:17 Community Announcements
Market Square Part 3 - Patch Notes
Pax Dei
13.03.25 13:43 Community Announcements
Market Square Part 3 Arrives on March 13
Pax Dei
11.03.25 13:03 Community Announcements
Spotlight: The Voice Chat
Pax Dei
04.03.25 13:49 Community Announcements
Pax Dei - Answers to pressing questions
Pax Dei
28.02.25 13:00 Community Announcements
Clan Codex Initiative
Pax Dei
26.02.25 14:59 Community Announcements
Plot Cleaning Session on February 27
Pax Dei
25.02.25 14:56 Community Announcements
Spotlight on your New Compass System
Pax Dei
21.02.25 13:00 Community Announcements
Verse 2.2, hotfix 2 - Patch notes
Pax Dei
14.02.25 09:59 Community Announcements
Spotlight - Upcoming Building Changes
Pax Dei
13.02.25 14:31 Community Announcements
Support your favorite Content Creators as they tackle in-game challenges!
Pax Dei
31.01.25 13:29 Community Announcements
Hotfix - 30/01/2025
Pax Dei
30.01.25 10:44 Community Announcements
Market Square Part 2 - Patch Notes
Pax Dei
23.01.25 13:13 Community Announcements
Market Square Part 2 Coming on January 23!
Pax Dei
21.01.25 13:41 Community Announcements
New Shards
Pax Dei
09.01.25 13:04 Community Announcements
Market Square - Patch Notes & Known issues
Pax Dei
13.12.24 09:57 Community Announcements
Market Square is Coming on December 13!
Pax Dei
12.12.24 13:24 Community Announcements
Markets, Gold & Grace -FAQ
Pax Dei
03.12.24 14:19 Community Announcements
A(nother) clarification on crafting
Pax Dei
02.12.24 13:49 Community Announcements
Spotlight - Markets and Economy System
Pax Dei
29.11.24 13:00 Community Announcements
Patch Notes – Hotfix, November 26, 2024
Pax Dei
26.11.24 10:29 Community Announcements
Patch Notes – November 21, 2024
Pax Dei
21.11.24 13:00 Community Announcements
Pax Dei’s chat system is now powered by Discord
Pax Dei
19.11.24 15:10 Community Announcements
Crafting Concerns Statement
Pax Dei
14.11.24 13:02 Community Announcements
Pax Dei - Roadmap Update
Pax Dei
08.11.24 13:05 Community Announcements
Proving Grounds, Patch notes
Pax Dei
05.11.24 18:25 Community Announcements
Proving Grounds - Release Notes
Pax Dei
31.10.24 11:03 Community Announcements
Spotlight - Proving Grounds additional changes
Pax Dei
25.10.24 12:00 Community Announcements
Conquer Lyonesse: Limited-Time PvP Building Event
Pax Dei
22.10.24 12:07 Community Announcements
Proving Grounds Coming on November 5
Pax Dei
17.10.24 12:00 Community Announcements
Spotlight - How the world of Pax Dei is changing
Pax Dei
11.10.24 12:22 Community Announcements
Spotlight - The Journal (and bonus info)
Pax Dei
04.10.24 12:03 Community Announcements
Tech Insights: our Building System
Pax Dei
27.09.24 12:01 Community Announcements
Spotlight - Upcoming Combat Changes
Pax Dei
20.09.24 12:10 Community Announcements
Back to School Status Update
Pax Dei
09.09.24 09:46 Community Announcements
One Dei at a Time: Conquering Pax Dei Solo
Pax Dei
16.08.24 12:00 Community Announcements
Upcoming wave of inactive plot cleaning - August 21
Pax Dei
14.08.24 09:07 Community Announcements
Patch Notes - August 13
Pax Dei
13.08.24 08:49 Community Announcements
Status Update - August 9
Pax Dei
09.08.24 13:25 Community Announcements
Patch Notes - July 17th 2024
Pax Dei
17.07.24 10:39 Community Announcements
July 2 - Patch Notes
Pax Dei
02.07.24 11:45 Community Announcements
June 26th - EA - Bugfixes patch
Pax Dei
26.06.24 13:42 Community Announcements
Stories from the War Room: the DNS Debacle
Pax Dei
25.06.24 13:00 Community Announcements
Early Access Day 3 - Status update
Pax Dei
21.06.24 16:52 Community Announcements
Stories from the War Room: D-Day
Pax Dei
19.06.24 15:58 Community Announcements
Early Access Day 1 - Status update
Pax Dei
19.06.24 15:24 Community Announcements
The Road Ahead
Pax Dei
17.06.24 12:09 Community Announcements
The vision behind Pax Dei
Pax Dei
14.06.24 12:00 Community Announcements
Announcing Pax Dei Preview Week - Gallia's Grand Gathering
Pax Dei
05.06.24 13:15 Community Announcements
Pax Dei will enter Early Access on June 18th!
Pax Dei
04.06.24 15:24 Community Announcements
Wilderness Alpha Learnings
Pax Dei
17.05.24 13:08 Community Announcements
Pax Dei will enter Early Access in spring this year
Pax Dei
09.01.24 08:19 Community Announcements
Alpha - Key takeaways
Pax Dei
20.12.23 11:01 Community Announcements
Morituri te Salutant
Pax Dei
16.10.23 15:10 Community Announcements
Tech FAQ
Pax Dei
19.09.23 13:53 Community Announcements
World FAQ
Pax Dei
13.06.23 14:02 Community Announcements
Building FAQ
Pax Dei
16.05.23 15:59 Community Announcements
Gameplay FAQ
Pax Dei
19.04.23 07:30 Community Announcements
General FAQ
Pax Dei
18.04.23 13:21 Community Announcements