Discover how Edgegap works

Discover how Edgegap works

Punch Upon a Time Netcode Overview: Guest Post by Supersaurus

Published

Published

Published

Punch Upon a Time key art of a wolf and a crowned green frog-like character mid-fight, with a title card reading Rollback Netcode, Punch Upon a Time, Guest Post.

Guest post: This article was written by Matthew Siegel, Netcode Specialist and Game Designer, and covers the rollback netcode behind Supersaurus’ party fighter Punch Upon a Time. It was first published on LinkedIn on November 20, 2026, and is republished here with permission. Punch Upon a Time is powered by Edgegap’s game server hosting and orchestration.

Punch Upon a Time was built from the start to support high performance rollback, allowing us to host more players than any fighting game before, with the same accuracy and responsiveness expected from any rollback system. How does it work?

Punch Upon a Time gameplay: six characters, including a crowned frog, a wolf and a swordsman, fight at once on the deck of a pirate ship.

The Basics - Separation of Concerns

Let’s start with the most important architectural decision we made: in the Punch engine, simulation and visual processing are entirely separated. When the game engine ticks a frame, the first thing it does is process a simulation state update, incorporating all rollbacks and remote inputs at once. Then, once the simulation is updated, we execute the visual update process exactly one time. The visual system has read-only access to the simulation data, and uses it to build a visual and audio model of the game’s current state. This means positioning objects in the correct places, setting animations and particle effects to the correct frame, playing or stopping audio effects, and so on. This separation ensures that our rollbacks are never performing wasteful visual calculations, and makes development much easier to manage.

State Copying and Rollback Performance

One of the challenges for rollback performance is the need to continually make copies of the game state, usually multiple times per frame in the event of frequent rollbacks. Many rollback engines use serialization to transmute the simulation data into an easily storable form, which must then be deserialized back into the game’s working state for tick processing. The advantage of serialization is that it can take data from many different places and combine them all together into a unified format. However, serialization can be very slow, so we don’t want to do it!

In order to avoid serialization, the Punch engine stores all of the simulation’s memory in a single, contiguous block. The data is organized using an entity-component system, and adequate memory space is allocated for all of the game’s potential data: characters, projectiles, physics, etc. Currently, the size of our simulation state is 442,520 bytes, just shy of 0.5 megabytes in RAM. We take care to make our component sizes as small as possible, so that we can allocate containers large enough to accommodate all of the game’s needs without constant management. We could make our simulation state much smaller, but that would come at the cost of development time and difficult to track bugs, so settling on half a meg is a good tradeoff.

Because our entire state is contained within a single contiguous block of memory, we can use a simple memcpy operation to make copies of it. This is extremely fast. So fast that simpler combat tests can support upwards of 90 frames of rollback at 60 fps on our development machines. Obviously we are not going to allow 90 frame rollbacks in real games, that would be highly disruptive for players! What our high performance does allow us to do is expand greatly the scope of battles, allowing more players, more complex stages and physics, items and so on, and do so while supporting lower spec devices. Supporting this many players creates other performance challenges, but the rollback engine is generally not one of them!

Scripting and Blueprints

One challenge of our architecture is that Unreal’s built in visual scripting doesn’t work with it directly. Early on in the project, game designers expressed that using Blueprints, Unreal Engine’s inbuilt visual scripting tool, to support gameplay development was extremely important for their productivity. In our system, if a game designer called a basic Blueprint function to, say, adjust a character’s position, this would have no effect on our simulation data! The data is too low level, and not part of the Unreal engine structure.

In order to support our game designers, we’ve had to carefully construct our own suite of scripting APIs to interact with the simulation data. We’ve created many functions that can read and interact with our simulation layer, as well as a script variable copying step when simulation memory is loaded or unloaded. As long as the designers work with our internal script APIs, they are free to add scripting functionality as they like. This integration has been very important for our expansive list of game modes, as a single technical designer can independently prototype new mode ideas in a matter of hours! Although Blueprints execution could in theory be a performance bottleneck, it’s generally been fast enough for our purposes.

Relay Servers

Because Punch Upon a Time can host matches with many players at once, the game needs an independent “arbiter of truth” to manage disputes and disruptions among game clients. In a traditional peer to peer fighting game system, any one player experiencing severe lag or disconnects from a 12-player match would cause halting or match failure for all 11 other players. This is obviously unacceptable, so Punch games are hosted on a relay server that accepts and distributes each player’s input data. Players send their input data to the relay server, which validates it and ticks multiple times per frame to distribute the data to other clients as quickly as possible.

If a player’s input data is extremely late, the relay server may invalidate the input, and instead inform all clients to replace that player’s input with a blank value (filling in with standard input prediction). This means if a player connects to a match with extremely severe latency, around 500ms or more, their inputs will never arrive in time to “count”, and they would be unable to move their character. This sort of restriction is necessary to protect the game experience of other players.

The relay server can also manage disconnects of players, and smoothly remove them from the match in a state-synchronized manner, as well as manage reconnects, settings adjustments, and other critical information.

Punch Upon a Time gameplay in a library stage: a witch fires a large purple energy beam that hits a crowned frog and a wolf while a hooded fighter leaps above.

Network Transmission

The best defense against lag in any real time game is, of course, for the player’s packets to arrive reliably and on time. While there are many important techniques to mitigate the impact of lag, such as rollback, fast and reliable data transmission will always yield the best results. Punch’s networking layer strives to achieve this ideal as often as it is physically possible to do so.

We’ve already talked about the relay servers, which help manage and distribute the player’s networking packets. Punch netcode also uses extremely aggressive bitwise compression to ensure those packets are as small as possible. Some may believe that expansive modern bandwidth makes this unnecessary. After all, if even outdated connections can deliver thousands of bytes every frame, why would shaving a few bytes off our packet size matter? The answer is reliability and redundancy. Quite simply, the more data there is in a packet, the more opportunities there are for something to go wrong.

But more importantly, each packet sent to and from the server contains a lot of actual information, which then becomes a very small amount of actual bytes transmitted after bitwise compression. When we send a UDP packet to the server, the system assumes failure, and will send the same data again in the next tick. In fact it will continuously send the same data over and over until the recipient confirms it arrived. This way if a random packet drop occurs, we are not waiting a lengthy amount of time to discover something has gone wrong. The problem will likely be corrected before we would even realize. This applies in both directions of communication, and ensures that random packet loss is minimally disruptive to the play experience. We want Punch to be a smooth play experience on wifi, cellular, or anywhere else. Nobody should need a dedicated ethernet line to have a great experience.

Visual Interpolation

Because the visual state is independently managed, it is empowered to make its own adjustments to the visual presentation based on its already existing state. Punch rollback is able to visually interpolate the positions of objects during a large rollback. Instantly snapping the character’s position over a large distance creates an ugly effect and makes it easier for players to lose track of what they are looking at. The interpolation layer can move objects gradually to their correct position over several frames, so our rollbacks are less disruptive to the play experience. This effect occurs purely on the visual layer, so synchronization is not affected at all.

This is just a high level overview of the more interesting parts of our fighting game engine, and is by no means an exhaustive list of everything that goes into its development. The tech team has been striving to bring players the best online experience possible. Punch Upon a Time will be available to play during Steam Nextfest starting October 19th, we hope you enjoy the result of our labors!

Editor’s note: Punch Upon a Time is now available on Steam.

TLDR

  • Strict separation of simulation and visual processing.

  • ECS in a single large memory block for easy blit copies, NO SERIALIZATION.

  • Custom Blueprints APIs.

  • Relay servers manage lagging players.

  • Bitwise network compression and aggressive, failure-assumed data resends.

  • Visual interpolation for large rollbacks.

Learn More About Supersaurus and Punch Upon a Time

Punch Upon a Time is a party fighter you play with a squad of friends. Players build a team of 3 from the biggest storybook names, then fight, dunk, score, fly and sumo their way to becoming the last team standing.

Supersaurus is a technical game studio specializing in multiplayer development across PC, mobile and console. The studio exists to prove that a small, driven team can make world-class games.

This article was originally written by Matthew Siegel and published on LinkedIn. All rights in the original content are owned by their respective owners.

Written by

Matthew Siegel, Netcode Specialist and Game Designer (guest post)

Get your Game Online Easily & in Minutes

Start Integrating Now!

Get your Game Online Easily
& in Minutes