I am using OpenGL in a series of jitter objects (jit.gl.render, jit.gl.sketch and jit.gl.handle). My program displays a large number of simple objects (e.g. cubes, planes or spheres) that are frequently updated.
An update may be changing the color of one cube only, but it seems that I am forced to erase everything and to reload every single object. I have developed my code in Java, re-using the code given in the example JitterGLTest. For each update, resetting the sketch and redrawing on it slows the OpenGl rendering.
There must be ways of optimising this, would you happen to know any? I would be happy to try out any suggestion and to report here how they affect the performance.
If needed, I can provide a simplified version of the program.