I have a list of points that's constantly updating. I want to plot lines using those points with pyopengl. If the list becomes too big, my render function becomes slow. Can I use Numba to speed up the process? Or any other optimization tool such as cython?
I used this function but I didn't notice any improvement:
from numba import jit
@jit
def points2plot(list_points):
glBegin(GL_LINE_STRIP)
for point in list_points:
glVertex2f(point[0], point[1])
glEnd()