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

stop waking up every 1ms for polling and do regular frame scheduling #4

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

nicolasavru
Copy link
Collaborator

Actually schedule frame callbacks the right way by scheduling the callback to be completed a frame interval after the current commit, less a couple ms for processing time.

Also stop processing buffers for sync subsurfaces twice.

@maxhbooth maxhbooth self-assigned this Mar 6, 2024
@maxhbooth maxhbooth self-requested a review March 6, 2024 15:20
},
};
})
WaylandSource::new(conn, event_queue)
Copy link
Contributor

Choose a reason for hiding this comment

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

wow so much prettier

src/server/smithay_handlers.rs Outdated Show resolved Hide resolved
src/server/smithay_handlers.rs Outdated Show resolved Hide resolved
@maxhbooth maxhbooth assigned nicolasavru and unassigned maxhbooth Mar 6, 2024
Actually schedule frame callbacks the right way by scheduling the callback to be
completed a frame interval after the current commit, less a couple ms for
processing time.

Also stop processing buffers for sync subsurfaces twice.
@nicolasavru nicolasavru merged commit b767ed1 into master Mar 6, 2024
11 checks passed
@nicolasavru nicolasavru deleted the better-polling branch March 6, 2024 22:52
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