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

Performance of moving windows around is not great #2

Closed
curzel-it opened this issue Jun 28, 2022 · 0 comments
Closed

Performance of moving windows around is not great #2

curzel-it opened this issue Jun 28, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@curzel-it
Copy link
Owner

Currently, as much as 40% of the CPU used by the app is consumed by moving windows around.
This is currently done via NSWindow.setFrame(:display:animate:).
Disabling animations has virtually no effect on performance.

One idea could be to make the window larger, and move the image instead of the window.
This way, we can move the window itself only once a second or so.
I expect this to be somewhat easier on the CPU, but it's hard to quantity without a spike.

@curzel-it curzel-it added the enhancement New feature or request label Jun 28, 2022
@curzel-it curzel-it self-assigned this Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant