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

Optimize editor #20

Open
3 tasks
RealKC opened this issue Sep 11, 2022 · 0 comments
Open
3 tasks

Optimize editor #20

RealKC opened this issue Sep 11, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@RealKC
Copy link
Owner

RealKC commented Sep 11, 2022

The editor currently does a lot more work than needs to be done when receiving draw events, here are some things that could be done to improve the performance:

  • Avoid some allocations in editor::pixelops by avoiding the intermediate Pixbufs
  • Pull the editor::pixelops code into its own crate and config cargo to enable all optimizations on that one (this is most important for people running kcshot in debug mode -- which I am)
  • Figure out a way to cache previously drawn surfaces, so we don't need to execute all operations over and over each draw event

I'll update the issue if more things come to mind.

@RealKC RealKC added the enhancement New feature or request label Sep 11, 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