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

perf: Only update regions with animated elements #5043

Merged
merged 4 commits into from
Dec 27, 2023

Conversation

Nerixyz
Copy link
Contributor

@Nerixyz Nerixyz commented Dec 26, 2023

Continuation of #5042.

This PR selectively updates the area in a channel-view that contains animated elements. The area of animated elements is calculated on every full repaint (see comment).

While testing, I noticed go-to-message not working, as it didn't update the widget (pretty sure this was broken if animated emotes were turned off).

You can flip the #ifdef to show the updated area.

@pajlada pajlada merged commit 9612eac into Chatterino:master Dec 27, 2023
20 checks passed
@Nerixyz Nerixyz deleted the perf/region-paint branch December 27, 2023 08:52
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.

2 participants