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

Use display refresh rate for animations #122

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

SaphiraKai
Copy link

@SaphiraKai SaphiraKai commented Mar 28, 2022

This PR allows instantWM to render animations at the display's native refresh rate, instead of being locked to 60Hz.

At the moment this results in slightly bizarre code, as all the calls to animateclient() still assume 60Hz when specifying how many frames to render. This isn't necessarily a problem, it just means that when specifying how many frames to render, it's actually specifying how many frames to render assuming we're running at 60Hz, and otherwise it will be scaled to match the display.

Ideally this would be changed to something more universal, like a number of milliseconds to animate for, but it works just fine currently.

PS: don't mind the weird commit log, I forgot to make a branch for my changes when I made this fork so I've had to clean it up in order to PR lol

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.

1 participant