Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The GPU usage is very high #137

Open
MenThu opened this issue Jul 22, 2024 · 1 comment
Open

The GPU usage is very high #137

MenThu opened this issue Jul 22, 2024 · 1 comment

Comments

@MenThu
Copy link

MenThu commented Jul 22, 2024

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
Copy link
Author

MenThu commented Jul 26, 2024

Has anyone encountered this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant