Hello,
I’m having a real hard time with my app. I’ve stripped everything back apart from my core system.
I basically have an app that uses the device camera feed, the user can takes an image of that (ReadPixels). From that, the app crops the image to a square, and then rescales it to a 512 x 512 texture.
This image is then duplicated 12 times ((512 * 512) * 12) each with a pixel adjustment.
Once this is complete, the app basically goes back to the start (doesn’t restart!) - this is to test for the memory leak. I clean my memory up by doing this:
//global search for textures
var ob = FindObjectsOfType (Texture2D);
for (var t : Texture2D in ob){
DestroyImmediate(t, true);
}
This manages to successfully pull all my texture2Ds, and removes them - the memory within Xcode does decrease, but not a huge amount, and it will forever build up.
I’ve uploaded my Unity Project for you guys to have a look at, but I’ve looked around the internet, and I can’t seem to find a straight answer.
2296688–154532–MemoryIOS.zip (921 KB)