I need to draw several thousands of colored arcs in a jitter window. Right now, I am using a the GL environment and a combination of a jit.gl.sketch and jit.gl.render to achieve this. I send all the vertices for each arc in GL format to the (same) jit.gl.sketch object.
However, with several thousands of arcs, it gets really heavy on the CPU (30% of CPU without, around 100% with, measure with "Activity Monitor" on my MBP).
I would really need to make this lighter. Do you see a way to achieve this?
Would it be more efficient to use one jit.gl.sketch per arc ? What about switching to jit.gl.mesh or using jit.gl.multiple? Would it be less heavy on the CPU ?
Currently, my rendering options are :
jit.gl.render: @auto_material 0 @depth_enable 0 @two_sided 0 @blend_enable 1
jit.gl.sketch: @auto_material 0 @depth_enable 0 @two_sided 0 @pushstate 0 @blend_enable 1
Any idea is welcome...