PDA

View Full Version : Fastest method for colored points



karbuckle
08-20-2004, 12:16 PM
I'm trying to determine which method would be the fastest way to display a list of points whose color can possibly change for every point. The list of points is dynamic and can potentially be as large as a million points (or even more).

It looks like Vertex Array may be the way to go, but wanted to get your input before implementing this display method.

Thanks in advance for your help.

Orzech
08-20-2004, 01:11 PM
Hello

As you suggest Vertex Array might be a good idea since you'd safe the cost of calling glVertex..() thousands of times. :)

gemelli_d
08-22-2004, 11:45 PM
if you can easily sort your points by color it can be a big win (you will not have to store and update a "one million color" array and you will be able to send your points in batches of constant color).

karbuckle
08-23-2004, 03:51 AM
Thanks for the replies thus far. BTW, I was indeed going to sort the colors so as to not incur the overhead of changing the color state for every single point. However, in the worse case scenario, every color could indeed be different.