-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Sending a p5.Graphics object into image() spams the console with warnings, reducing performance #755
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
Comments
looks like we are missing support for p5.Graphics arg in the validateArguments check, it should be something more like this.
however, this still create the warning unless the p5.Image block is removed completely. @crhallberg any thoughts on what might need to change about the validateArguments function? |
@ccheaton in the meantime, you can use p5.min.js file which doesn't have this error checking. |
@lmccart Thanks. I've been trying to stick with the unminified version to familiarize myself with the codebase, in hopes of contributing in the future. I'll stick with p5.min.js for anything meant for production. |
If you run the
createGraphics()
example code locally and open your Chrome developer tools, you'll see the following repeated many times:This causes serious performance issues on my computer, spinning up the fan, etc...
The code I used to reproduce it is:
The text was updated successfully, but these errors were encountered: