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

[Performance Optimization]: High GPU usage when idle (fixed) #2069

Open
SMTKamikaze opened this issue Dec 22, 2024 · 8 comments · May be fixed by #2082
Open

[Performance Optimization]: High GPU usage when idle (fixed) #2069

SMTKamikaze opened this issue Dec 22, 2024 · 8 comments · May be fixed by #2082

Comments

@SMTKamikaze
Copy link

High GPU usage when idle

Description

High GPU usage even in idle due to "animation = borderangle, 1, 30, liner, once"

or

image

for more details : hyprwm/Hyprland#7711

Plz either replace "animation = borderangle, 1, 30, liner, loop" with "animation = borderangle, 1, 30, liner, once" as it remain active even in game mode and many minimal animation configs.

Thank you!

@inevity
Copy link

inevity commented Dec 23, 2024

Two monitor, consume all cpus
one monitor, use 4-6 cpus,but just open one ketty window

Thank you:
change loop to once in ~/.config/hypr/animations/animations-default.conf
Now one monitor ok. two monitr did not test.

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Dec 23, 2024

animation = borderangle, 1, 30, liner, once

cool, whats the difference with the loop?

@SMTKamikaze
Copy link
Author

hyprland documentation says that "loop" requires hyprland to push new frames every seconds which causes high GPU usage especially when there are more than 1 windows one the screen(least of the time).

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Dec 23, 2024

Cool! how about once?

we are aware of this borderangle being hungry, therefore we added a specific option in HyDE CLI to disable it.

Now what's the difference with disabling borderangle, setting it once or setting it to loop? how significant is it?

I just want to know to better deal with this. Also feel free to open a PR so I can merge it.

@SMTKamikaze
Copy link
Author

Setting it "loop" to "once" has significant improvement in GPU usage. in loop if there are 3 windows then my GPU usage was around 30-40 percent even at idle but changing it to once reduced it to 0-5% at idle. increasing the no' of windows cause even more idle GPU usage in "loop", setting it to "once" make it back to 0-5% idle.

disabling boarderangle and setting it "once" do not have big change. once trigger the boarder animation of changing gradient for very short time(2-3sec) for a newly open window. So the Idle GPU usage it again 0-5%.

turning on game mode do not solve the issue.

the only way is to change it from loop to once or commenting it out.

Idle GPU usage in loop:
image

Idle GPU usage in once:
image

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Dec 23, 2024

@SMTKamikaze Very well! Thanks! will you please open a MR?

@SMTKamikaze
Copy link
Author

I am newbie and I have no Idea what is MR or PR :(

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Dec 23, 2024

Oops my bad. let's wait for someone to open a Pull Request (PR)

@wizard-28 wizard-28 linked a pull request Dec 28, 2024 that will close this issue
16 tasks
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 a pull request may close this issue.

3 participants