I try to build some more performance demos that need to redraw a chain of multiple 3D geometries that are all identical.
Is there a way to buffer a geometry with p5js and just tell webgl to redraw a buffered shape? That would speed up the entire process a lot.
Thank you for your answers in advance.
I think that’s already the case, at least for primitives. From webgl_mode_architecture.md:
Caches geometry for 3D primitives (in retained mode), with the exception of shapes created with begin/endShape, which are dynamically generated and pushed to GL every time one is drawn (in immediate mode).
Yes I realized that after some more digging. Thank you!