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] Swappy becomes laggy the more paints are made #20

Closed
jtheoof opened this issue Jun 2, 2020 · 0 comments
Closed

[Performance] Swappy becomes laggy the more paints are made #20

jtheoof opened this issue Jun 2, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@jtheoof
Copy link
Owner

jtheoof commented Jun 2, 2020

The way the render works is to re-render all the paints every time. This makes the tool become more and more laggy as more things are being drawn. Some paints are heavier than others, for example, the new blur tool is quite intensive. Once a blur has been rendered, no need to re-render it every time, only for some undo/redo, or clear.

Need to find a better to not re-render every time. For example use the last drawn cairo surface as base for new paints and flag the rendered paints.

@jtheoof jtheoof self-assigned this Jun 2, 2020
@jtheoof jtheoof added the enhancement New feature or request label Jun 2, 2020
jtheoof added a commit that referenced this issue Jun 8, 2020
jtheoof added a commit that referenced this issue Jun 11, 2020
- Fix blur logic
- Reused rendered surface to optimize future render on comitted blur
- Include gaussian kernel function

Closes #20
Closes #22
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