Is there a way to dump graphic memory?
I have an endless runner that spawns new and different kinds of enemies as the game progresses. When I look at the memory usage of my game, the game slowly uses up more and more ram until it reaches a certain point and crashes. It coincides with more enemies having existed, not necessarily how many are on screen at a time. It also seems to happen after I've played a couple rounds, but not after the first time I've played.
This is leading me believe there is a memory issue and it's basically causing my game to become unplayable. When I found this was a problem a month ago, I switched all my graphics from being retina to non-retina, and that helped a lot. It then would only crash after an even more extended period of time, sort of delaying the inevitable. However, I've since had to add more graphics and it's back to crashing a little earlier. I've cleaned up my code considerably but it still isn't helping.
So this feels like it's pretty clearly pointing to a memory dumping issue. Is there any way to dump memory?