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

render-manager: Don't paint when session is not active #2484

Merged
merged 1 commit into from
Oct 5, 2024
Merged

Conversation

soreau
Copy link
Member

@soreau soreau commented Oct 3, 2024

This can happen when switching to another tty. A test is to run glxgears in a drm session with xwayland, then switch to another tty and run top. The wayfire cpu usage is 100+%. However with this patch, when the session is inactive, the cpu usage is negligible.

One note is that patches were pushed to seatd recently which make the session->active state reliable. At the time of this writing, seatd does not have a release containing these patches, so for this to work reliably, seatd git master is recommended.

This can happen when switching to another tty. A test is to run glxgears
in a drm session with xwayland, then switch to another tty and run top.
The wayfire cpu usage is 100+%. However with this patch, when the session
is inactive, the cpu usage is negligible.

One note is that patches were pushed to seatd recently which make the
session->active state reliable. At the time of this writing, seatd does
not have a release containing these patches, so for this to work reliably,
seatd git master is recommended.
Copy link
Member

@ammen99 ammen99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks!

@ammen99 ammen99 merged commit 3cbc6b4 into master Oct 5, 2024
8 checks passed
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.

2 participants