Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: Fastest method for colored points

  1. #1
    Intern Newbie
    Join Date
    Nov 2000
    Posts
    36

    Fastest method for colored points

    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.

  2. #2
    Junior Member Regular Contributor
    Join Date
    Dec 2002
    Location
    Poland
    Posts
    234

    Re: Fastest method for colored points

    Hello

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

  3. #3
    Intern Newbie
    Join Date
    Feb 2003
    Location
    france
    Posts
    48

    Re: Fastest method for colored points

    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).

  4. #4
    Intern Newbie
    Join Date
    Nov 2000
    Posts
    36

    Re: Fastest method for colored points

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •