So I've been stuck trying to figure out what's causing memory usage to skyrocket in my game for, a while now. It's something to do with internal/ScriptContext and I don't know how to go about diagnosing it. It just slowly goes up over time. I thought it might be to do with the game saving automatically every now and again but I changed it to only save at certain points and it didn't fix anything.
Basically, does anyone know how to figure out what's causing a memory leak like this?
** You are now Level 2! **