What does cache do in a CPU?
The cache keeps important data very close to the CPU cores, where it can be accessed super fast.
The cache memory often works at super high frequencies and has super low latency but it uses a lot of silicon space therefore it's expensive. The memory sticks are fast, but much slower (lower frequency) than cache memory and with higher latency. Then mass storage (hard drives, SSDs etc) are even slower.
You could imagine yourself sitting at a desk, with a few sheet of paper spread on the desk. If you need to work with data, looking up something on the sheets of paper on the desk is super fast - that's your cache.
The memory sticks (DDR3, DDR4 etc) are like you having stacks of paper in the desk - you have to open the door to the desk, slide out the compartment or whatever, take the stack of papers and get the sheets.
The SDD / storage is like you getting up from the desk and going to get a stack of papers from another desk or from some storage area - it's much much slower.
Think about playing a game, a first person shooter - the game will use some information all the time, and reuse it and update often .. coordinates of the player on the map, how many bullets each weapon has, how much life you have, where the enemies are, and what the AI determined their behavior should be (go towards you, search for enemies etc)
Each time a frame is calculated, the game has to calculate if the player hit a wall or is hidden by a wall, if some light hits the player and makes a shadow ... the game engine can cache the calculations and redo them much faster compared to requesting the data from the actual memory sticks.
The RAM sticks will hold textures that get applied over objects in the frame, if they can't fit into the video card's ram, game level stuff , audio sounds effects, background music etc etc
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now