Hacker News Viewer

Game Devs Explain the Tricks Involved with Letting You Pause a Game

by speckx on 4/16/2026, 2:05:10 PM

https://kotaku.com/video-game-devs-explain-how-pausing-works-and-sometimes-it-gets-weird-2000686339

Comments

by: vintermann

One of the things that impressed me in Quake (the first one) was the demo recording system. The system was deterministic enough that it could record your inputs&#x2F;the game state and just play them back to get a gameplay video. Especially given that Quake had state of the art graphics at the time, and video playback on computers otherwise was a low-res, resource intensive affair at the time, it was <i>way</i> cool.<p>It always surprised me how few games had that feature - though a few important ones, like StarCraft, did - and it only became rarer over the years.

4/19/2026, 7:39:12 AM


by: SyzygyRhythm

Early versions of Unreal Engine had these animated procedural textures that would produce sparks, fire effects, etc. The odd part is that when you paused the game, the animated textures would still animate. Presumably, the game would pause its physics engine or set the timestep to 0, but the texture updater didn&#x27;t pause. I suspect it was part of the core render loop and each new iteration of the texture was some sort of filtered version of the previous frame&#x27;s texture. Arguably a very early version of GPU physics.<p>Modern games can have the same issue. Even taking a capture of the exact graphics commands and repeating them, you&#x27;ll sometimes see animated physics effects like smoke and raindrops. They&#x27;re doing the work on the GPU where it&#x27;s not necessarily tied to any traditional physics timestep.

4/19/2026, 8:49:26 AM


by: avereveard

&gt; when it was time to ship, we’d read the [Technical Requirements Checklists] and have to go back and add a special pause for when you unplug the controller<p>article confirms my early theory I formed when reading the title about why would pause be complicated

4/19/2026, 8:53:06 AM


by: recursivecaveat

The strangest pause bug I know is in Mario Sunshine: pausing will misalign the collision logic (which runs 4 times per frame) and the main game loop. So certain specific physics interactions will behave differently depending on how many times the game has been paused modulo 4.

4/19/2026, 7:47:57 AM


by: bel8

I quite like when games keep playing some visual-only animations when paused.<p>Like torch flames and trees swaying in the wind.

4/19/2026, 7:40:56 AM


by: gobdovan

When I present TLA+ [0], I am referencing game pauses (pause buffer &#x2F; item duplication Legend of Zelda exploit, Dark Souls menuing to cancel animations) and deliberate crashes as mechanics to exploit games, as those are still valid actions that can be modeled, and not doing that allows such exploits to happen.<p>A system is only correct relative to the transition system you wrote down. If the real system admits extra transitions that you care about (pause, crash, re-entry, partial commits), and you didn&#x27;t model them, then you proved correctness of the wrong system.<p>[0] <a href="https:&#x2F;&#x2F;lamport.azurewebsites.net&#x2F;video&#x2F;videos.html" rel="nofollow">https:&#x2F;&#x2F;lamport.azurewebsites.net&#x2F;video&#x2F;videos.html</a>

4/19/2026, 8:20:00 AM


by: xhevahir

When I first played the NES the pause feature impressed me even more than did the graphics. Apparently Atari already had the feature on the 5200 console, but even as late as 1988 it felt like magic to hit a button, go and eat dinner, and an hour later resume my game with another press of the button.

4/19/2026, 8:28:59 AM


by: dwroberts

The console cert ones are interesting but all the others are just Unity&#x2F;Gamemaker&#x2F;Unreal not allowing the developers to write normal code? The nonzero timestep thing is very strange

4/19/2026, 8:22:17 AM


by: Lerc

I find the notion odd that this is even a problem to be solved.<p>It suggests a level of control way below what I would ordinarily consider required for game development.<p>I have made maybe around 50 games, and I think the level of control of time has only ever gone up. Starting at move one step when I say, to move a non-integer amount when I say, to (when network stuff comes into play) return to time X and then move forward y amount.

4/19/2026, 7:43:00 AM


by: DeathArrow

Not sure if slowing down time is the right approach.<p>The best approach would be using something like if(game_is_paused) return; in the game loops.

4/19/2026, 7:08:45 AM


by: bitwize

For my game (custom engine) I had a way to stop the game clock from advancing, while the input and draw loop kept running. It would also put the game into the &quot;pause&quot; input state during which only the resume button would be active.

4/19/2026, 6:57:16 AM


by: jonahs197

&gt;linking to kotaku

4/19/2026, 8:26:32 AM


by: faangguyindia

How difficult can it be when Cloud providers are able to do live migration of VM from one bare metal server to another?

4/19/2026, 8:42:36 AM