GPUImage icon indicating copy to clipboard operation
GPUImage copied to clipboard

Alert : Low Memory Warning testing with instruments

Open jadelmag opened this issue 13 years ago • 1 comments

Hello, I have a problem. I would like to select a filter and when you press the button to take the picture, this generate a UIImage "without filter" (using GPUImageGammaFilter) and another UIImage with the selected filter so, display the captured image with the filter and pressing another effect apply the effect on UIImage "without filter" so they do not mix.

The problem is not how to do it so that I do not generate memory increases, because every time I pressed the button with my code generate 3 or 4 leaks and show me "low memory warnings".

Please help!! And A lot of thanks for this aswesome framework

Here is the code that i use: http://pastie.org/6972918

jadelmag avatar Mar 21 '13 17:03 jadelmag

In my experience, low memory warnings are common when working with GPUImage. These images can be quite big and the phones don't have much memory on them. Your app should respond to the memory warning by freeing up other resources that are not in use.

The leaks are a different question. Instruments can sometimes tell you where the leak is happening, so you need to find it and fix it :-)

aburgel avatar Mar 26 '13 16:03 aburgel