I’m a complete noob at this OpenFrameworks stuff and am trying to learn as much from these forums and other resources as I can.
This is a general and not so general question about performance.
I’m trying to develop an application with kinect where I get the contour from the depth map. These contours I store them as ofPaths in a vector and remove them after they’ve been there for 5 seconds. This means that the vector can contain up to approx. 80 ofPaths.
In the draw function I loop over the vector and draw all these vectors and obviously performance goes down a bunch depending of the number of paths and complexity of them.
I was wondering what would be the best way, performance wise, to draw these paths or maybe if there was some way to put together all of them (which overlap most of the times) to draw them in one call.
I also thought about comparing the new path with the last one to see if its the same (or really similar) and not include it in the vector, but I don’t know how to compare them without looping the vertices.
Appending the new path to one path doesn’t work because of the overlapping. I’ve already tried several things that didn’t work but at least served me to learn about shaders, and some of OF and cpp.
Thank you so much in advance!