Hi All,
A little while ago I discovered a major memory leak in my game. I have since fixed it, but this experience has made me start to really scrutinize memory usage. What I seem to be seeing is that some data on A map never disappears. It won't continuously reload if you repeatedly return to the map, but it also will never go away even if you return to title. Only if you fully close the game. I thought it was possibly due to other plugins in my game, but it also happens in a fresh base game. This extra data on a base game is pretty small, about 10-20 extra mb in ram on a very simple 3 map test game, but once other plugin data gets added that number grows to about 2-300 mb per 10-ish maps. At least in my current game, anyway.
Normally, I wouldn't think too much about this, but the thought occurred that if this persists and someone plays a large enough game long enough wouldn't that end up overloading someones ram? Hopefully I am misunderstanding something about how memory is allocated and eventually GCed but any advice or insight into either fixing this issue or knowing that it shouldn't be a problem would be greatly appreciated.
A little while ago I discovered a major memory leak in my game. I have since fixed it, but this experience has made me start to really scrutinize memory usage. What I seem to be seeing is that some data on A map never disappears. It won't continuously reload if you repeatedly return to the map, but it also will never go away even if you return to title. Only if you fully close the game. I thought it was possibly due to other plugins in my game, but it also happens in a fresh base game. This extra data on a base game is pretty small, about 10-20 extra mb in ram on a very simple 3 map test game, but once other plugin data gets added that number grows to about 2-300 mb per 10-ish maps. At least in my current game, anyway.
Normally, I wouldn't think too much about this, but the thought occurred that if this persists and someone plays a large enough game long enough wouldn't that end up overloading someones ram? Hopefully I am misunderstanding something about how memory is allocated and eventually GCed but any advice or insight into either fixing this issue or knowing that it shouldn't be a problem would be greatly appreciated.