Mnementh on 05 February 2021
curl-6 said:
Marth said:
GC in coding terms means "garbage collection" As you play though a level the game loads assets and sets values all the time which fills up your memory but as some assets go out of your view and loading range and so they get removed. But this doesent happen in a set pattern as the asses have different sizes means they allocate different spaces in your memory. So over time you get empty parts of memory that cant be used because they are to small. Garbage collection reorganizes your memory and makes room for new assets to eliminate the useless small empty bits. Think of it as defragmentation of your harddrive but for your memory and in real time. But it also tries to predict what goes out of use to make this process as fast and efficient as possible. |
Thanks. So in terms of the actual game experience, what would this manifest as, maybe slightly better performance or streaming? |
Garbage collection in general has a lot of results. For one it frees memory for new usage. But as it aligns the still live data together it can reduce the number of cache misses on modern CPUs/GPUs. A clever GC might make some assumptions about the data to make that even better. The downside of GC is that things freeze for the time of GC, or at least the parts that are affected by the GC (as the data has to be locked for the time of reorganisation). Clever GC strategies can help reduce this timeouts. So if the patch notes remarks "GC strategy" it may improve any of these parts or be as simple as freeing some object that was before overlooked. Without further details it is unclear how far reaching the effects.
3DS-FC: 4511-1768-7903 (Mii-Name: Mnementh), Nintendo-Network-ID: Mnementh, Switch: SW-7706-3819-9381 (Mnementh)
my greatest games: 2017, 2018, 2019, 2020, 2021, 2022, 2023
10 years greatest game event!
bets: [peak year] [+], [1], [2], [3], [4]