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

fix: Don't poll the event loop on Wayland to reduce the power usage #2149

Merged
merged 2 commits into from Dec 1, 2023

Conversation

fredizzimo
Copy link
Member

What kind of change does this PR introduce?

When the winit vsync is used, the event loop should never be polled, otherwise the CPU usage is just wasted. Winit will send the redraw request and wake the loop up when it's time to render anyway.

All other ways of doing vsync, just blocks inside the loop itself, so polling should be used there.

This also updates the tracy profiler to the latest version.

Did this PR introduce a breaking change?

  • No

Disable most tracy features by default, but they can be enabled separately if needed.
@fredizzimo fredizzimo force-pushed the fsundvik/fix-wayland-idle branch 2 times, most recently from cc78d74 to ebd3465 Compare November 27, 2023 12:29
@Kethku
Copy link
Member

Kethku commented Nov 30, 2023

LGTM

@fredizzimo fredizzimo merged commit 6c9b921 into neovide:main Dec 1, 2023
2 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.

None yet

2 participants