GPUImage3 icon indicating copy to clipboard operation
GPUImage3 copied to clipboard

The GPU usage is very high

Open MenThu opened this issue 7 months ago • 1 comments

My device: iOS 17.5.1, iPhone 11 Pro Max, with a capture resolution of 1920*1080. Using the Saturation example from GPUImage3's FilterShowcase, I noticed that the GPU proportion in Energy Impact is very high.

After discovering this issue, I tried several methods to reduce GPU usage:

1、Removing the filter and rendering only the video frames from the camera to the view. 2、Calling makeBuffer only when the data changes. 3、Setting the ImageOrientation of RenderView to .noRotation.

However, none of these methods were effective, and the GPU usage remained high, reaching up to 69%.

Using Xcode's Capture GPU Workload to analyze performance bottlenecks (compared to 720P), I found no significant differences in shader time or counter data.

Has anyone encountered this issue? How can I reduce GPU usage? Any help would be appreciated.

MenThu avatar Jul 22 '24 09:07 MenThu