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

Solve the problem of high CPU occupation #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Solve the problem of high CPU occupation #7

wants to merge 1 commit into from

Conversation

JiXiaoYao
Copy link

I found that if video_socket is set to blocking mode, the CPU usage will drop significantly.
Therefore, the corresponding acceptance code should also be modified appropriately.

For real mobile(watch video):

  • Before:

image

  • After:

image

For emulator mobile(a game):

  • Before:

image

  • After:

image

This is scrcpy, but scrcpy use GPU. So I think my modification is to effectively reduce the CPU usage

image

I found that if video_socket is set to blocking mode, the CPU usage will drop significantly.
Therefore, the corresponding acceptance code should also be modified appropriately.
@JiXiaoYao JiXiaoYao mentioned this pull request Jul 5, 2020
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

Successfully merging this pull request may close these issues.

1 participant