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
A guess (not an OpenGL expert) is that you need to get rid of globals poly_draw_queue, line_draw_queue, point_draw_queue and replace them with a single draw_queue.
When we use a common draw_queue, OpenGL is called multiple times whenever the opengl primitives (triangles, lines, triangles) change. This makes the overall efficiency of code slower. Hence, this structure was adopted.
In the current development branch, we have implemented a common draw_queue with some performance optimisation. It will be merged into the main code soon.
Drawing a rectangle over a line does not fully obscure the line
To Reproduce
Output

I believe the problem is in the renderer. The renderer first renders all the polygons before lines. Reference: https://github.com/p5py/p5/blob/master/p5/sketch/renderer.py#L276
System information:
The text was updated successfully, but these errors were encountered: