This is the correct answer and the function is called Virtual Memory in Windows but is commonly known as the pagefile or swap. Adding more RAM won’t save you from this, as Windows will automatically move memory files into virtual memory if they’re idle for awhile, regardless of how much RAM is currently in use. In fact adding more RAM will probably increase the size of the virtual memory which may make the problem worse for you.
Here is a more complete explanation: Swap file in Windows 10 & Windows 11: How to use it to optimize PC performance (increase, adjust, deactivate swap)?
The pagefile is configurable. You can change which hard drive it gets stored on, how big it can be, and even turn it off completely. Turning it off has risks though, and may lead to system crashes (see the warnings in the article).
You could add an SSD specifically to serve as a pagefile location and nothing else, in which case you could just get a small cheap one (a 32GB SSD would be more than enough for 16GB of RAM) - assuming that you have a place to plug it in to your motherboard, and then turn off the pagefile storage on all other drives in your system. That would be an easy change as you wouldn’t have to reinstall Windows onto a new hard drive.
Ultimately though, the easiest and cheapest fix is to just change your behavior - close the game if you’re not using it for awhile and relaunch it when you want to play again.
WhyJiffie@sh.itjust.works 1 day ago
virtual memory is related, but that’s a broader system that also gets used when no swap file was set up.
I agree that adding more RAM won’t necessarily make the problem go away as windows might still swap the game out if it deems it more important to cache more files in RAM, but I don’t see why that would make it worse.
NaibofTabr@infosec.pub 1 day ago
The swap file or pagefile is automatically set up in Windows 10/11. You have to do something manually to prevent it.
By making the swap file larger, which may be an issue if the hard drive doesn’t have enough space left, and if not it will still increase the amount of time needed to recover data from the swap, because it’s larger.
WhyJiffie@sh.itjust.works 1 day ago
yes. but it still is different from virtual memory. that’s a broader thing.
then open the control panel and fix the swap setup. and then enjoy your more ram. the solution to this problem does not seem to be not upgrading to have more ram.
NaibofTabr@infosec.pub 12 hours ago
Of course, that’s why I said…
because that’s how it’s labeled in the Windows Settings menu.
Adding more RAM is not a solution to OP’s described problem in any way. In the context of moving data from active memory to the pagefile, Windows doesn’t care how much RAM you have, only how long the data in active memory has been idle (which is not configurable). Adding more RAM to the system will do nothing to change that behavior.
However, adding more RAM might make retrieving data from the pagefile slower. Yes you could adjust the pagefile settings to address this, as you said, but it still doesn’t do anything to address OP’s problem.