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 10 of 10

Thread: Static Model

  1. #1
    Intern Contributor
    Join Date
    May 2002
    Location
    AUSTRIA
    Posts
    83

    Static Model

    I have a stic model with about 500.000 vertices. What is best to get the best performance. I do not want to use the NV extensions, because i want to be indipendent of NV cards. I tried Display lists, Draw Range Elements. Should i split up my vertex-arrays or my display list? Please help me!!
    Juergen

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Feb 2001
    Location
    Switzerland
    Posts
    1,840

    Re: Static Model

    use nv extensions if supported, else stick with normal var/display lists (but i guess displaylists are not that useful because they could get quite fat..)

    for getting optimal performance and features, you have to code for different gpu's.. too bad, not?
    http://davepermen.net - if i could stay true to my heart, i would feel totally free

  3. #3
    Intern Contributor
    Join Date
    May 2002
    Location
    AUSTRIA
    Posts
    83

    Re: Static Model

    i do not want to stick on the nv extensions and for different gpu's. The application should run on all plattforms and grafic cards. I tried display list, but i can not change the color of the different vertices.

  4. #4
    Senior Member OpenGL Pro
    Join Date
    Feb 2001
    Location
    Switzerland
    Posts
    1,840

    Re: Static Model

    use glDrawArrays and thats it..
    well.. switching to VAR is quite easy then.. just one functionpointer to allocate memory on the geforce, use this instead of localmem and use the same vertexarrays.. whats the problem?
    http://davepermen.net - if i could stay true to my heart, i would feel totally free

  5. #5
    Intern Contributor
    Join Date
    May 2002
    Location
    AUSTRIA
    Posts
    83

    Re: Static Model

    I thought that glDrawElements ist faster than glDrawArrays?

  6. #6
    Junior Member Regular Contributor
    Join Date
    Mar 2001
    Posts
    111

    Re: Static Model

    aren't 500.000 vertices quite a lot? Which extension do you mean? Doesn't it make more sense to implement for instance an algorithm, which determines only the visible vertices and render then those?
    ~tOmUsA

  7. #7
    Intern Contributor
    Join Date
    May 2002
    Location
    AUSTRIA
    Posts
    83

    Re: Static Model

    I don't want to use NV extensions. In my case the most time all the vertices are visible. Which is the best algorithm for detecting the visible vertices?

  8. #8
    Senior Member OpenGL Guru
    Join Date
    Mar 2001
    Posts
    3,768

    Re: Static Model

    Even if you used VAR, I doubt you'd get great performance. You might get 30fps or so.

  9. #9
    Intern Contributor
    Join Date
    May 2002
    Location
    AUSTRIA
    Posts
    83

    Re: Static Model

    You mean it is possible to get 30fps with 500.000 vertices if display only lines?? Then i make a lot of mistakes in my programming.

  10. #10
    Senior Member OpenGL Guru
    Join Date
    Mar 2001
    Posts
    2,704

    Re: Static Model

    Lines are much slower than triangles on most graphics cards (except possibly very expensive workstation cards such as the Wildcats)

    What people are trying to tell you, and you're not hearing, is that once you've made sure that you submit vertex data in an optimal format (floats or shorts) using DrawRangeElements, there's not a whole lot you can do to get better throughput without tuning for a particular card.

    The point of extensions is that you use them if they're there, and you fall back to the non-extension case when they're not there. Thus, you can test for NV_VAR, and if it's there, use that to allocate your vertex array and enable VertexArrayRange, else use malloc(). Very simple, makes nVIDIA cards run faster, and doesn't change the speed or compatibility on other cards.
    "If you can't afford to do something right,
    you'd better make sure you can afford to do it wrong!"

Posting Permissions

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