currently I work on an app that processes streaming video from a kinect. I wish to draw a lot of circles for a part of this (~20000). It all works fine, but drawing the circles drops the framerate quite a bit, from around 50 fps to 20 and further down the more ofCircle calls I make.
Currently the circles are drawn into an fbo which has a size of 1920x1440 (large size so lines are somewhat smoothed upon drawing, which only partly works the way I would wish for it to work, but I don’t know better ways for smoothing; anyhow I wanna have this resolution). The color and size of the circles is dependent of the depth value of pixels retrieved from the kinect.
I wonder which is the best way to proceed from here, ie. where best invest time, to get the framerate back to at least 30 fps, but preferably higher (also I plan on adding more effects in the furture). I thought of these options:
- using a vbo to load vertices into (which makes me wonder how I would get the vbo to draw circles)
- using vertex+fragment shaders (which would require me to study shaders)
- using a geometry shader also to translate points into circles
Here is a video of what this looks like: http://youtu.be/BQ6_8nyQuDo (colored part starts at 2:00)
Any ideas appreciated!