r/computerscience • u/TranslatorParty4662 • Dec 30 '23
WTF does ram actually do?
I know that RAM stores data for quick use for the CPU. But I want to know more, what does RAM actually do when its storing data. Like when I'm playing a game is RAM responsible for keeping track of how many bullets I shoot. If there are any game developers reading this please let me know. What kind of information does RAM store and how and when does it use it. The main thing I use my pc for is gaming and recording/video editing so how would RAM play a role in those things?
260
Upvotes
View all comments
Show parent comment
1
u/P-Jean Dec 31 '23
That’s a really good question. That’s a bit beyond my understanding, but I know that you can use your HDD as RAM in the form of virtual memory. I think it’s limited by the bus speed to the drive. I’ve wondered why SSDs aren’t used in this way. A partition, like you said, would make sense if the speed is comparable to stuff like RAM and cache.
Maybe someone here who deals more with hardware can chime in. I only know the basics of memory management from a software perspective, and even then, there’s always exceptions.