chrisbatt / AndroidFastImageProcessing

A framework for speeding up image processing on android devices by taking advantage of shaders on the GPU.
MIT License
285 stars 118 forks source link

Memory leak #21

Open gkakasevski opened 9 years ago

gkakasevski commented 9 years ago

Hi all, we are trying to apply several filters on one photo (for example, the user can apply different filter on the photo several times one by one - something like on Instagram, user select filters from sliding bar and see the preview). In our implementation we use one pipeline and for each filter we use addRootRenderer(), and when next filter should be applied we call pipeline.removeRootRenderer() from the previous filter. The problem is that memory usage increases for about 200MB each time we apply filter and after several filters the application crashes. Can you give us a solution how to overcame this problem, what we are doing wrong?