We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Whilst looking for a simple way to speed up rendering on the main thread I found a consistent crash when using P2D and P3D renderers.
Sketch with threaded functions should run happily regardless of context.
As soon as a context is introduced the sketch crashes with a violation error.
Working code:
void setup() { size(200, 200); background(0); } void draw() { thread("saveImage"); } void saveImage() { saveFrame("output/" + frameCount + ".png"); }
Crashing code:
void setup() { size(200, 200, P2D); background(0); } void draw() { thread("saveImage"); } void saveImage() { saveFrame("output/" + frameCount + ".png"); }
void setup() { size(200, 200, P3D); background(0); } void draw() { thread("saveImage"); } void saveImage() { saveFrame("output/" + frameCount + ".png"); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
Whilst looking for a simple way to speed up rendering on the main thread I found a consistent crash when using P2D and P3D renderers.
Expected Behavior
Sketch with threaded functions should run happily regardless of context.
Current Behavior
As soon as a context is introduced the sketch crashes with a violation error.
Steps to Reproduce
Working code:
Crashing code:
Your Environment
The text was updated successfully, but these errors were encountered: