Skip to content

drm: make pageflips drive the frames#241

Merged
vaxerski merged 1 commit into
hyprwm:mainfrom
gulafaran:frame
Feb 15, 2026
Merged

drm: make pageflips drive the frames#241
vaxerski merged 1 commit into
hyprwm:mainfrom
gulafaran:frame

Conversation

@gulafaran

Copy link
Copy Markdown
Contributor

make the pageflips drive the frames instead of waiting on the idle dispatch, it adds unnecessery latency at the beginning of each frame.

make the pageflips drive the frames instead of waiting on the idle
dispatch, it adds unnecessery latency at the beginning of each frame.
@vaxerski

Copy link
Copy Markdown
Member

I dont understand what this changes

@gulafaran

Copy link
Copy Markdown
Contributor Author

I dont understand what this changes

instead of output->commit(), pageflip waits for fence in the waylandloop, poof triggers and emits presented. but since other things have scheduled frames this pageflip will not begin rendering nor frame.emit(). it returns and wastes time in handling other junk. before the waylandloop finally dispatches the idleframe callback and doing frame.emit().

what it is attempting to do instead is once the pageflip occurs, it emits.frame() and continues. HL itself wont commit or schedule frames if it isnt necessery and as such the idleframe callback becomes more of a begin rendering when idle, instead of the driving function for frame.emit() "when things are continously occuring"

that start of each frame delay is measurable

@vaxerski vaxerski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

k

@vaxerski vaxerski merged commit 603f5cd into hyprwm:main Feb 15, 2026
1 check 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