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

Renice hyperion-webos process for lower CPU usage #94

Open
TBSniller opened this issue Sep 26, 2022 · 5 comments
Open

Renice hyperion-webos process for lower CPU usage #94

TBSniller opened this issue Sep 26, 2022 · 5 comments
Labels
feature request New feature or request

Comments

@TBSniller
Copy link
Collaborator

TBSniller commented Sep 26, 2022

Since our process is running as native service, we have encountered high CPU usage. Reason might be service register, which makes hyperion-webos able to use more CPU time than in older versions without luna bus registration.
This leads to more unresponsive webOS UI and apps.

To reduce CPU usage it's currently possible to:

  • Lower capture resolution
  • Lower FPS & disable vSync
  • Disable UI capture
  • Use renice after each start

We should implement a priority change using setpriority(), which can be set by parameter.

@TBSniller TBSniller added the feature request New feature or request label Sep 26, 2022
@EmmanuelVella
Copy link

Hi, on my B6V, I use a build that was made just after the introduction of the vsync option. With it, I get 30fps (max), and very acceptable latency.

When I updated to the new release (with same config), my CPU usage increases, I get 15fps (max) and latency is a lot higher.

I would be glad to help by sharing more information I you want.

@satgit62
Copy link

Ich habe 192 × 96 Auflösung auf Manuel gewählt, Priorität in PicCap 4.1 von 150 auf 100 reduziert, Sync auf aus und tatsächlich ging die CPU-Last von hyperion-webos von 73 % auf 27 % und hyperhdr von 12 % auf 3 % zurück. Ich habe die Frame rate auf 20 (max.) eingestellt. Jetzt gibt es auch keine Verzögerung mehr und die Übergänge sind fließend.

@TBSniller TBSniller added the bug Something isn't working label Sep 28, 2022
@TBSniller
Copy link
Collaborator Author

TBSniller commented Sep 28, 2022

Thanks to @Sinergetikus. He has seen that current version is running in lower FPS as older builds and found out its because of the usage of https://github.com/openlgtv/buildroot-nc4/ toolchain in newer builds. Using the "old" toolchain from https://github.com/webosbrew/meta-lg-webos-ndk/ gives a huge performance boost, which also leads to lower CPU usage, as desired max FPS are reached with less CPU usage.

We are using https://github.com/openlgtv/buildroot-nc4/ toolchain to support older webOS versions.

@EmmanuelVella
Copy link

Just installed the ipk manually (not available on the TV ATM), and if I did it correctly, seems to work great ! Thank you very much !

image

@TBSniller
Copy link
Collaborator Author

Performance issue is fixed with #96
Regardless it would be nice to change the process priority of hyperion-webos, so this stays open

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

No branches or pull requests

3 participants