BradLarson / GPUImage

An open source iOS framework for GPU-based image and video processing
http://www.sunsetlakesoftware.com/2012/02/12/introducing-gpuimage-framework
BSD 3-Clause "New" or "Revised" License
20.2k stars 4.61k forks source link

GPUImage Memory in ios12 #2610

Open perrorchen opened 5 years ago

perrorchen commented 5 years ago

@BradLarson

Hello,I are developing a video software use your GPUImage framework. Recently, i met some memory problems in iOS12 。As shown in the figure below, the GPUImageView will allocate three memory, default default

default

Is that right? and the memory allocated by renderbufferstorage can not release when the GpuimageView remove from window。

bang9 commented 5 years ago

use this GPUImageContext.sharedFramebufferCache()?.purgeAllUnassignedFramebuffers()

zhaoyk1986 commented 4 years ago

@Bang9 I write [[GPUImageContext sharedFramebufferCache] purgeAllUnassignedFramebuffers]; at -(void)viewWillDisappear:(BOOL)animated and it's useless.

@perrorchen same issue as you. did you solved it ?