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

Speed up drawing image into fresh context #1

Merged
merged 1 commit into from
Aug 4, 2022

Conversation

FD-
Copy link

@FD- FD- commented Aug 4, 2022

This implements improvement 1 discussed in issue tidbyt/pixlet#350.

I made the graphics context keep track of its freshness, and use draw.Src for drawing images in case the context is clean so far. This way, no changes to pixlet are needed other than the dependency change.

Please note the pixlet render speedup only affects applets that involve heavy image drawing, but it is considerable for those. This change speeds up the reddit_r_place community applet by a factor of 3 on the Raspberry Pi Zero.

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