Today’s topic for this blog is the use of memory. I decided to write about the use of memory in game consoles. We are dealing with things like memory cards, hard disks and random access memory. I also tell you a bit about processors and how computers deal with the actual ways in which the player interacts with the game.
This is not a science writing but more like something that I wanted to briefly write to you since I happen to have some experience in playing these video games and I also have this background in studying and working with computers. I have been playing games a lot. I have read a book or two about the use of memory and also studied a lot about this subject.
What really made a difference in the use of memory for video game consoles was the introduction of the optical drive. You did have a space for couple, maybe four, megabytes for your game. Well, like you might know, a CD-ROM disc has somewhat a space of 650 MB. So the amount of space was more than 100 times larger.
What about saved games? A supported disk drive was introduced with the release of the original Xbox. It might be the first game console to have a hard drive. Before this we had to use memory cards for storing and also organizing our saved games. Hard disks also allowed many other things. It also made installing games to the hard drive a norm.
I am trying to explain the difference between temporary memory (like RAM in the world of computers) and staying memory (HDD and/or SSD drives). So basically RAM, or Random Access Memory is something that the system uses while it is powered. After the power is cut off the memory disappears. In programming you use different variables to store the data temporarily.
Hard drives can save data that is included in these variables so that it can be accessed also later on. Earlier there were typically HDD drives used which offer a lot of space but they are much slower in processing the data than newer and more expensive SSD hard disks. The data in a SSD or HDD can be saved in different forms. Sometimes the programmers can use text files and sometimes forms like JSON. Data can also be serialized in a way. There are many possibilities. Basically you are saving something to some file or files. Sometimes there is also some sort of database used.
The data moves between the components of your gaming device through different kinds of busses. You can probably read more about electronics from your favorite search engine or maybe you can create a prompt for AI. I am not going to try to expain this so thoroughly at the moment. But if you are interested you can find more about this.
How does the gaming console work basically? There is a loop in the program code that keeps refreshing the screen. The frequency is blondly called FPS. It stands for Frames Per Second. This can be for example 60. The system reads all values of variables that are in the code and updates everything regarding to the values that the variables hold.
The game system detects any interactions using the code. The game detecs what controllers buttons are pressed and for how long. Then the screen keeps updating. There’s a lot of things happening. The main source for the things that are happenig is the actual source code of the game. You might think that it is easy to read a source code but it actually is pretty. It is way harder than reading something that a blogger has written to a blog post. And only the person that has written the code might fully understand it. Sometimes even this is not possible. The code can and is actually preferred to have comments in it also.
So to summarize this blog post we can conclude that memory is used in many ways in game consoles. Data is saved and handled. We have come a long way from game consoles like Sega Mega Drive in which you aren’t able to save at all (you do if you have a battery inside the game cartridge) to modern consoles in which you have huge SSD drives of several tera bytes of space for lot more content than just your saved game data. I encourage you to find more information if you are deeply motivated in learning more about this very interesting topic.