r/ItsAllAboutGames • The Apostle of Peace • Apr 13 '26 • Bravo 1

Article Game developers have explained how pause actually works and it's much stranger than it seems.

The pause button in video games is so familiar that few people ever think about how it works. You might notice the cool music in the pause menu or be surprised that in some online game, the pause button doesn't actually stop anything.

But most of the time, we just press a button and take it for granted that the action on screen will freeze. Yet behind this simple mechanic lies a surprisingly diverse range of solutions – from time manipulation to screenshots and empty rooms.

Developers on social media have eagerly shared their approaches to implementing pause, and the answers have been extremely varied. Many noted that modern engines support pause by default, and it shouldn't cause serious problems – provided the developer hasn't made a mess of things during development. But game development is a quirky and tangled business, so sometimes pause turns into genuine time manipulation.

Slowing Down Time

Chris Weisiger said on BlueSky:

"In Waves of Steel, pause slows the game's speed to 0.000000001 of normal. In other words, it would take about three years of real time for one second to pass in the game. I did this because I heard that Unity behaves strangely when the speed is set to zero, and I wanted to avoid that."

Tommy Hanusa added:

"As a hobbyist in Unreal, I do something kind of silly. I set the time scale to 0.000001 so that the player or tester can unpause and fly around at an absurd speed like 5 000 000 if they want to show me something."

Many other developers reported that they simply set the time scale to zero when pause is pressed and ensure that certain functions, such as the menu interface, ignore this command and continue working as intended.

Many Flavors of Pause

Another non-obvious aspect is the existence of different types of pause. Pressing the Start button pauses the game and opens a menu. But what happens when the controller disconnects? When opening the inventory? When pressing the Xbox Guide button? These are all different types of pause, and in some games, there are quite a few of them.

Andrew Gillett told Kotaku:

"I worked on various games at Frontier, including Kinectimals on Xbox 360. I didn't work on that part directly, but I remember there were about seven different 'pause' levels. For example, the game has to pause when the Kinect camera disconnects, and that's a different type of pause than when the user opens the Xbox system menu."

A user named Dreamless on BlueSky explained that different types of pause sometimes created serious headaches for developers.

"I remember back in the Xbox and PS2 era, we made pause for regular gameplay with exceptions like disallowing pause during QTEs and such. Then, when release time came, we read the technical requirements and had to go back and add a special pause for controller disconnection. The two pauses conflicted and caused bugs."

Screenshot of the Room

Perhaps the most curious method of implementing pause is this: developers stop time, take a screenshot of the current game state, and use it as a background behind the pause menu interface. This allows them to do anything behind that picture – not render enemies or even move the player to an empty room.

Rami Ismail (Rami) said:

"I usually take a screenshot of the gameplay at the moment of pause, then display it under the pause menu while simultaneously stopping the rendering of real objects. This is mostly just to free up memory, but for my type of games, it's not critically necessary."

Jan Willem Nijman revealed his method:

"In most Vlambeer games, as well as Minit and Disc Room, I take a screenshot with the interface disabled, then either move to a completely different empty room or deactivate everything, with the screenshot as a background, and when unpausing, I return to the game. Sometimes there's a one-frame delay because you need to disable the interface for the screenshot."

When someone noted that this technique seems janky, Nijman replied that every game he's ever worked on has a healthy dose of jank.

Everyone Makes Mistakes at Least Once

The main takeaway from all these responses is that pause generally isn't the most difficult feature to implement. However, it still requires careful attention and thorough testing, especially if the game has features that could cause problems when game time is stopped.

Developer Caliban Darklock shared that many game creators make mistakes when first implementing pause, but that experience becomes one of the most important lessons of their career.

"The first time I implemented pause in a game, every game object checked whether the game was paused every single frame, which hurt performance throughout the game. Now all my objects are organized in a hierarchy, and only one object at the top checks whether the game is paused."

"Most developers do a terrible, sloppy, nightmarish job the first time they implement pause, and then they know better for the rest of their lives."

Overall, judging by the feedback, after their first game, every developer finds their own preferred method for implementing pause.

👉 Guys, don't forget to follow us on other platformers. There's a lot about games there too. Help to grow!   

👾YouTube/TikTok/Discord/Instagram/Twitter/Twitch/Patreon 👾 

3.5k Upvotes

102 comments sorted by

211

u/FHAT_BRANDHO Apr 13 '26

More of this kind of content. Interesting stuff

6

u/Gaidin152 Apr 14 '26

Legit video game history here.

1

u/Jessency Apr 15 '26

Doesn't explain why you can't pause an online game though.

1

u/FHAT_BRANDHO Apr 15 '26

Bait used to be believable

2

u/Jessency Apr 15 '26

It was meant to be an obvious joke

1

u/FHAT_BRANDHO Apr 15 '26

Sorry man, the internet has made me have a knee jerk skepticism response

2

u/Jessency Apr 15 '26

Lol no worries. I'm honestly in the same boat.

I actually debated whether or not to add a "j/" tag but thought it was too obnoxious.

2

u/FHAT_BRANDHO Apr 15 '26

Dude I absolutely get that lol ive started saying "/s if its absolutely necessary" and like obviously im living evidence lmao

1

u/xerox8522 Apr 16 '26

in l4d2 you can if you set sv_pausable to 1 even in coop modes. Never tested in versus mode though.

1

u/B_bI_L Apr 20 '26

fully agree, i am surprised there is no youtube channel like that already (there is, but in russian and i want to avoid it)

38

u/[deleted] Apr 13 '26

[removed] — view removed comment

12

u/Rulebookboy1234567 Apr 14 '26

The one that always gets me is in FPS games everything behind you doesn't exist or isn't rendered or something like that.

I don't know if this is changed in modern games.

12

u/FHAT_BRANDHO Apr 14 '26

This is the industry standard to my knowledge

6

u/ThrowAway-18729 Apr 14 '26

Yup, it's called "culling" (the view cone thing with the HZD gif that gets thrown around every time this is mentioned is specifically called "frustum cullling") and basically, the industry standard is to be as aggressive with it as possible. So anything that we know for sure won't be on screen will most likely get removed from the render pipeline ASAP.

1

u/TheRatmen Apr 14 '26

Yes exactly! Most 3D games (and some 2D games) will have something like this. No point drawing stuff you can’t see, and the game might lag otherwise! “Frustum Culling” doesn’t draw what the camera can’t see. The Unity Engine supports this natively, but even then you can fiddle around with how aggressive it is, because some angles make things invisible when they shouldn’t!

5

u/junglejim988 Apr 14 '26

Horizon Zero Dawn for example

1

u/Magnum_Gonada Apr 15 '26

Video game developers are magicians.

1

u/Mean_Combination_830 Apr 14 '26 edited Apr 14 '26

No that's what happens in reality the simulation only renders what's in front of a conscious observer. When nobody looking at it everything behind you ceases to exist I would say check but you can't. Wait till you learn that every time you flip a coin it lands on heads and tails you simply choose one path and another you has taken the other as every possible outcome exists simultaneously 👀

1

u/Rulebookboy1234567 Apr 14 '26

Well, yeah, schrodingers reality

1

u/Wooden-Agency-2653 Apr 17 '26

Is it getting solipsistic in here, or is it just me?

1

u/IronWhitin Apr 19 '26

The funny parts Is im not sure Is like that in real Life, if no One collection observe a thing Is that thing happen?

Is like a Schrodinger's reality, we Need tò observe the state/s

39

u/TehOwn Apr 13 '26

Every game I've worked on, pause was pretty simple. You generally have a system for maintaining timing, since you want to track system time, local time, and in-game times (often separate ones for physics, other kinds of simulation, etc). You just have the ability to pause the actual world simulation while everything else continues. The other numbers increment and you also skip over a bunch of processing that is unnecessary when the game is paused.

Not sure why you'd need another type of pause for controller disconnects. From what I've seen, most games just bring up the menu and, thus, automatically pause.

Did any major developer weigh in?

27

u/devinsheppy Apr 13 '26

the "pause" screen consoles require when a controller disconnects can happen anywhere. like in the middle of a qte where you have your own pause disabled, but could also happen on the main menu, where of course a game wouldn't have a normal pause menu but require the controller disconnected one 

6

u/LOPI-14 Apr 14 '26

You can technically pause Elden Ring of playing offline, in a very... Weird way.

Basically you open equipment menu, press button for help and bring out "explanation".

That pauses the game.

4

u/TehOwn Apr 13 '26

If it's a system requirement, then sure, I wouldn't know about that. Never did console development.

I did do some work on Android and there's a few hoops to jump through there (like people taking a call, etc), so it checks out.

4

u/SudsierBoar Apr 13 '26

If it's a system requirement, then sure

I'd say 99% of Xbox games have the function but I still find some from time to time that dont have it

2

u/ThrowAway-18729 Apr 14 '26

It's a technical requirement. I worked on compliance on these. Either the games you found that don't have it got a waiver somehow, or slipped under the radar (or have some specificity that allows them to be exempt)

1

u/SudsierBoar Apr 14 '26

Interesting, thanks!

3

u/MunkyDawg Apr 13 '26

on Android and there's a few hoops to jump through there (like people taking a call, etc)

From an end user only perspective, I remember learning about that when I needed to figure out why the hell a game needed "access to my calls".

Having the game running in the background while you're in a call would suck.

4

u/Ashamed-Subject-8573 Apr 13 '26

No way that pausing Elden ring could be done by controller disconnect. And if it was I’m surprised the community didn’t crucify the developers for adding pause

8

u/Dependent-Zebra-4357 Apr 13 '26

If the game doesn’t actually pause, then you just get the controller disconnect screen over the still running game.

1

u/[deleted] Apr 14 '26

The game could be paused by reading guides in your inventory or map, so I don't see why not.

2

u/MithranArkanere Apr 14 '26

I usually go with the 'ticker' method. Things happen per tick. Pause the timer, no ticks, things don't happen.

2

u/ThrowAway-18729 Apr 14 '26

AFAIK the 0.0 time dilation thing is very prevalent in unreal, some stuff doesn't play nice with the actual pause function. IIRC inputs especially. We could get them to work during pause, or we could just slap this one line instead of whatever the "offcial" pause is and have everything look fine.

The controller disconnect thing is a TRC thing, if a controller disconnects you simply HAVE to pause the game if possible (plus display something prompting the user to reconnect it), that's basically the requirement. Sure you can bring up the pause menu most of the time, but not during some cinematics, menus, etc. So if we have a hard requirement that the game always pauses for these, we'll have a "stronger" pause for it (I don't even know if the actual TRC specifies this, I rarely read them, but if the compliance guy from the publisher said it needed to be that way, we made it that way)

1

u/Boom9001 Apr 16 '26

Well the example given mentioned there are times pause is disabled, like cutscenes. You can disable the pause button, you can't disable controller disconnecting.

So you'd need to either have controller disconnect have a delayed pause for next available moment or allow it to pause when normal pause can't.

15

u/BadDogSaysMeow Apr 13 '26

Any% speedruns of Gothic 1 and 2, often rely on the fact that the game doesn't properly stop everything when you press escape to pause the game.

So a lot of physics glitches can be performed by pausing and unpausing the game at right moments.

And some cheats can still be used while the game is paused, an unplanned function, as there is a separate cheat for pausing the game without opening the menu.

1

u/rowdymatt64 Apr 14 '26

I vaguely remember a game/speed run (but not which game) where pausing had some crazy multiplicitive effect on forces when holding a direction and spamming pause. I wonder if it's the same reason lmao

1

u/Ha1rcl1p Apr 17 '26

Similar in the N64 Zelda titles, you could slash your sword and "pause buffer" (repeated opening and closing of the pause screen) to extend the slash length or use the same pause buffering technique to move frames a long but timers would stay at the time when originally paused

10

u/TheDevilsAdvokaat Apr 13 '26

"Most developers do a terrible, sloppy, nightmarish job the first time they implement pause, and then they know better for the rest of their lives."

I think many developers do a sloppy job the first time they do anything..and then learn from that. I know I do.

5

u/No_Magician5266 Apr 14 '26

Bro really thought he was saying something profound with that one. It’s basic fact of any skill acquisition really

6

u/CatacombOfYarn Apr 14 '26

My 98 KB edition of Asteroids, that i made in highschool didn't have a pause function. If you pressed escape, it just closed.

1

u/Gaidin152 Apr 14 '26

Ouch. But then, Asteroids was never meant for multiple sessions. It was meant for playing in a sprint or if you had the skill to push it a marathon.

You either finish the game or you don’t.

5

u/heephap Apr 13 '26

Caliban Darklock is a silly name

5

u/SpacemanIsBack Apr 13 '26

yeah... and i don't really know that the guy has any authority to speak in the name of "many game creators"

1

u/ThrowAway-18729 Apr 14 '26

I'm a videogames professional, he looks the part tbh.

5

u/IneptFortitude Apr 13 '26

I know that in the Kingdom Come games, Warhorse put the menus as in-world objects far across the barriers of the map that you get teleported to when opening the inventory screen. Meanwhile, pausing is just a regular blurred-out screenshot. It’s pretty fascinating, and the teleportation is only noticeable because it messes with the rain and lighting effects for a second.

2

u/Steelballpun Apr 13 '26

Very interesting, I’ve seen an indie dev do that before but didn’t know it was used in KCD.

1

u/RealLeaderOfChina Apr 14 '26

The closer you are to the menu the faster it loads in as well.

5

u/FaceTimePolice Apr 14 '26

Imagine if someone put that fake pause to the test. If you left it on pause for three years to see if one second had actually passed in the game. 😆🤔

3

u/SandorMate Apr 13 '26

Really neat lil random topic, thank you

2

u/MithranArkanere Apr 14 '26

In Saints Row 2, some things are paused, some aren't, so you can sometimes see things going a bit crazy in the background.

1

u/staticinfinity Apr 14 '26

The more I learn about this game, the more I wonder how it even worked at all.

1

u/MithranArkanere Apr 14 '26

I have always been amazed by large simulation games.

In Just Cause, you could zoom all the way up with planes and see the whole island.

1

u/staticinfinity Apr 15 '26

Ha, that's pretty cool, especially considering the hardware of the time. The gameplay for the first Just Cause was a bit mid, though.

1

u/kingkalis Apr 13 '26

Very interesting, fun read! Thanks for sharing

1

u/High_Overseer_Dukat Apr 13 '26

They dont just freeze the ram?

1

u/Audible_Whispering Apr 14 '26

That's not a thing someone can do, and even if you could do it it wouldn't pause the game, just break it.

1

u/High_Overseer_Dukat Apr 14 '26

It would and you can as long as you are careful.

Save systems sometimes just download the ram to storage, for example.

1

u/Audible_Whispering Apr 15 '26

No. This might have been possible on very early consoles which didn't have operating systems, but modern consoles and PC's don't give software running in userland direct access to the hardware. You can't just tell the console to stop operating on each page of RAM allocated to the game.

Even if you could, it wouldn't work how you think. Halting all RAM operations means you can't accept any player input or navigate a pause menu, so you've just permanently frozen the game. Not great.

As for saving a game by coredumping the RAM... theoretically yes, you could, but for a modern game that means each save file would be several GB in size, which is ridiculous, so this isn't done.

What you're describing is used in gaming. Game emulators often allow you to save a snapshot of the system as a complement to the in game save system. They can also have external pauses which work by freezing the emulated system hardware. This works because the game emulator has full control of the emulated system. From the perspective of the emulated system the emulator is running in kernel land in ring 0. Games running on real hardware do not have that level of control.

Modern consoles also have quick resume features which work as you describe. Again this is possible because it's a console level feature that can access the hardware, and it's only saving a snapshot of the last game you played, or at most one snapshot per game.

1

u/Steelballpun Apr 13 '26

Interesting, as someone who’s made a little indie game or two I always wondered how it was implemented. I had conditional statements checking on every object if pause was true or not and I absolutely knew that was a bone headed way to do it lol.

1

u/Philosoreptar Apr 14 '26

Fantastic post

1

u/KJShen Apr 14 '26

I'm still amazed that Path of Exile 1 & 2, implemented a pause feature. Never really thought an always-online game would have it.

1

u/SplendidPunkinButter Apr 14 '26

Use an interrupt. If pause is pressed, enter a loop that does nothing but wait for unpause to be pressed. Or at least just check once per game loop. Good lord, why would you have every game object check if the game is paused?

1

u/Fatonamon Apr 14 '26

What a headache that FromSoftware will never have to endure.

1

u/Sin_is_cool Apr 16 '26

Elden ring has a pause. If you open your inventory and open an item's explanation the game pauses

1

u/Fatonamon Apr 16 '26

Actually good to know. Thanks.

1

u/Haunting_Art_6081 Apr 14 '26

In my own engines I just set delta time to zero but let the camera still move.

1

u/DeathandGrim Apr 14 '26

In older game maker games we had the pause refresh function that held everything until a button was pressed. Nowadays I do a top down hierarchy so that every object aware of the pause to stop operation

1

u/ANS__2009 Apr 14 '26

And then there's fromsoft

1

u/_AcinonyxJubatus_ Apr 14 '26

"Then, when release time came, we read the technical requirements"

This brings me so much comfort to read that from another software developer. I feel seen and truly understood. Thank you.

1

u/bloodbuzz_ohimark Apr 14 '26

Does Unity behave weirdly at 0 timescale? I've heard this before never encountered it myself, and I always use this for pause.

Only issues I've noticed are if you've got vector calculations happening in update (i.e ai navmesh steering) these will get set to zero.

You also need to ensure animations are not locked to timescale if you want animated menus, also coroutines / invoke won't work in pause.

But provided you set menu anims to UnscaledTime and check your vectors and lookrotations for magnitude before operating on them, are there other issues?

1

u/FriendlyAntonio Apr 14 '26

Holy yappersville.

Are people actually spending their time reading that much for one post?

Somebody cram all this in five sentences or less for folks who don't wanna read all that.

1

u/hniles910 Apr 14 '26

I have never looked at a simple pause menu and thought that the time has stopped flowing

1

u/Warp_Legion Apr 14 '26

What’s really fascinating to me is that in some games, some assets (foliage, fish, insects, or very specific particle effects usually) will move around as the camera moves around in full pause photomodes

Crimson desert for example. Time freezes, but these small squid were not only still moving their tentacles while in the paused photo mode, but moving the camera around made some of them slide around several feet

I’ve occasionally noticed things like uprooted bushes or tree branches that can be knocked around by aoes turning and pivoting 180 on an axis depending on the angle you move the camera in photomode. Not all of them, often just one or one that’s clipping into the player character

1

u/veritasmahwa Apr 14 '26

Great content

1

u/musicman801 Apr 14 '26

All of this and so many still can’t figure out how to let you pause during a cutscene

1

u/ImAvoidingABan Apr 14 '26

It depends on the engine. Unreal Engine has pause built in. Literally one line or blueprint node and your game is paused but all menus etc work.

1

u/AffanDede Apr 14 '26

My biggest gripe with Baldur's Gate 3 was the lack of a pause function.

1

u/Buetterkeks Apr 14 '26

Imma be honest i thought they just do it like emulators and basically full pause the ram except for the parts that do the pause menu 

1

u/Dissipated_Shadow Apr 14 '26

Does anyone know why lighting/electricity effects in games still animate while games are paused?

1

u/LukeLC Apr 14 '26

Anything that doesn't have a mechanical function doesn't need to be paused. So you might only pause the things that matter. Or you might be seeing GPU effects which are purely cosmetic and don't follow the game's time scale at all.

1

u/jarskih Apr 14 '26

I just pause the custom game loop in Unity update. Much simpler than using timescale.

1

u/DontyWorryCupcake Apr 14 '26

That slowing down time thing kinda explains why so many speedrun techs are based on pausing and unpaunsing the game at certain points 

1

u/Panganaki Apr 14 '26

Fromsoft: the what?

1

u/Educational-Year3146 Apr 14 '26

Honestly never really thought of it, but interesting to know.

Kind of answered a question I never had the insight to ask.

1

u/level_6_laser_lotus Apr 15 '26

Bummer. Sounded like an interesting article. But it abstracts so much of the really interesting choices to make in an engine away.

Also the wording is weirdly wishy-washy. For example, "set the time scale to zero when pause is pressed and ensure that certain functions, such as the menu interface, ignore this command and continue working as intended." is not completely wrong, but no one would ever phrase it this way because it implies a wrong understanding of how stuff works. Maybe AI? 

1

u/Coldspark824 Apr 15 '26

This is why things like Psychonaut’s infinite jump/flying glitch work because pausing resets the gravity physics in the game (saving everything but the state of the character falling or having pressed jump) so you can jump, pause, jump again in the air, pause, and repeat.

1

u/RandomOnlinePerson99 Apr 15 '26

Run the game in a VM and stop the VMs CPU clock when paused.

1

u/StatementMediocre710 Apr 15 '26

I wonder how the more recent “persona” games (P3R and Metaphor to be specific) handle their pause menus because they’re so fucking cool looking 😂 I feel like I saw a post about this a while back and forgot to check it out.

1

u/Temporary-Concept-81 Apr 15 '26

Games that don't let you pause (at any time) grind my gears.

Thankfully I game on steam deck, and you can just make it so that pressing the steam button automatically suspends the game process. Has worked like a charm for me so far.

1

u/VidiLuke Apr 16 '26

This is a cool post. Thanks for this

1

u/miguelfox Apr 16 '26

That was an amazing post, very informative, thanks for that!

1

u/kemonkey1 Apr 17 '26

I saw a video of the new EA skate game where players somehow got under the map and found a black cube. When they went inside, you could see the pause menu.

They managed to put mini ramps there using the quick drop feature. So when any player in the lobby paused, they would see these 4 random players skating in their pause menu. 😂

1

u/PapaLuigi69_ Apr 17 '26

I love writeups. Thank you for this. I love being able to read something instead of getting information from an video that I can't really search up again. I would rather spend 5 minutes reading a writeup than 30 seconds watching a short.

1

u/-non-existance- Apr 17 '26

I know in Godot, there's a defined pause function, which stops the tree from processing anything. Basically, every frame calls the process() function for each object, which usually handles all the logic, but pausing it makes everything stop doing that.

As such, you have set the specific nodes you need to work while paused to be immune from the pause function. This usually would be audio and menu nodes.

1

u/BlasterCheif Apr 17 '26

I just joined this sub because of this post! Cool info

1

u/Prudent-Ad7457 Apr 17 '26

One of my biggest pet peeves is games that don’t allow pausing especially offline ones but reading this lowkey opened my eyes a bit

1

u/WhiteCat_Artist Apr 18 '26

Fascinating : O