Skip to content

Improved stability of Processing companion example #4

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

Merged
merged 1 commit into from
Aug 19, 2020

Conversation

8bitkick
Copy link
Contributor

Several users have reported issues with stability of Processing using the previous version, and others observing image corruption in the Processing viewer possibly due to missed bytes.

This PR reduces memory usage by moving the image array declarations outside of the draw loop and removing the image double buffering. The double buffer seems to have been redundant as the displayed image is not updated until .updatePixels() is issued.

Move image array declarations outside of draw loop and removed the image double buffering.
@8bitkick 8bitkick requested a review from facchinm August 18, 2020 17:17
@facchinm facchinm changed the title Improved stability Improved stability of Processing companion example Aug 19, 2020
@facchinm facchinm merged commit 3066862 into arduino-libraries:master Aug 19, 2020
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