1
Ask a Question / Getting rid of actors from memory
« on: April 09, 2023, 05:57:57 pm »
So I posted this in the discord but as it's a holiday weekend I haven't had any response and thought I'd ask on the forum to avoid my issue ending up scrolling off and being missed.
I seem to be having a rather severe garbage collection problem; specifically, there is no garbage collection. I've been testing this a fair bit since it was reported to me and from what I've worked out, every time a new actor-type (type specifically, not every individual instance of an actor) appears for the first time, the game begins to use more memory.
However, this memory is *never* cleared. Even when memory is added as a result of an actor that is part of an atlas appearing, leaving the scene the actor is atlas'd to does not remove the memory used by that actor.
I have tried to troubleshoot this with telemetry, but doing so causes the game to no longer compile, and become unable to compile even after disabling telemetry until the project is cleaned. I attached the error log from that to this post. I also tried turning on "dispose images" in the settings but that leads to the game crashing a few seconds after starting up.
Is there anything I can do to get the game to clear out the memory? My best guess is that it's trying to keep everything in memory to load faster, but eventually there's just too much stuff and it crashes the game.
I seem to be having a rather severe garbage collection problem; specifically, there is no garbage collection. I've been testing this a fair bit since it was reported to me and from what I've worked out, every time a new actor-type (type specifically, not every individual instance of an actor) appears for the first time, the game begins to use more memory.
However, this memory is *never* cleared. Even when memory is added as a result of an actor that is part of an atlas appearing, leaving the scene the actor is atlas'd to does not remove the memory used by that actor.
I have tried to troubleshoot this with telemetry, but doing so causes the game to no longer compile, and become unable to compile even after disabling telemetry until the project is cleaned. I attached the error log from that to this post. I also tried turning on "dispose images" in the settings but that leads to the game crashing a few seconds after starting up.
Is there anything I can do to get the game to clear out the memory? My best guess is that it's trying to keep everything in memory to load faster, but eventually there's just too much stuff and it crashes the game.