You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
curveVertex() causes java.lang.OutOfMemoryError: Java heap space error when the vertex amount is big in P2D render. With the default Java2D render it works fine.
voidsetup(){
size(800,800, P2D);
beginShape();
for(int i =0; i <26000;i ++){
curveVertex(i *0.1, 100);
}
endShape();
}
Above sketch crashes due to OutOfMemoryError, below sketches can be executed without problem:
voidsetup(){
size(800,800);
beginShape();
for(int i =0; i <26000;i ++){
curveVertex(i *0.1, 100);
}
endShape();
}
voidsetup(){
size(800,800, P2D);
beginShape();
for(int i =0; i <2000;i ++){
curveVertex(i *0.1, 100);
}
endShape();
}
Your Environment
Processing version: 4.3
Operating System and OS version: macOS 14.4.1
Other information: on a Intel Mac
Possible Causes / Solutions
Might have something to do with how Catmull-Rom splines is calculated in P2D?
The text was updated successfully, but these errors were encountered:
Description
curveVertex()
causesjava.lang.OutOfMemoryError: Java heap space
error when the vertex amount is big in P2D render. With the default Java2D render it works fine.Above sketch crashes due to OutOfMemoryError, below sketches can be executed without problem:
Your Environment
Possible Causes / Solutions
Might have something to do with how Catmull-Rom splines is calculated in P2D?
The text was updated successfully, but these errors were encountered: