Results 1 to 7 of 7

Thread: Maximum vertex array size

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2002
    Location
    London, England, UK
    Posts
    14

    Maximum vertex array size

    Is there a maximum size for vertex arrays?
    If so, is there an OpenGL function that returns it? I have looked at all the documentation but cannot find anything.

    I'm asking this because the maximum number of vertices I ssem able to render is about 2500, and this number decreases further if colour and/or normal arrays are also enabled. If I exceed this number I get an error in the driver library.

    Thanks.

  2. #2
    Senior Member Regular Contributor
    Join Date
    Jul 2001
    Posts
    442

    Re: Maximum vertex array size

    What graphics card are you using? 2,500 sounds awfully low - perhaps there is something else going on here.

  3. #3
    Junior Member Newbie
    Join Date
    Jan 2002
    Location
    London, England, UK
    Posts
    14

    Re: Maximum vertex array size

    I'm using a Radeon 7500 (old, but not that ancient!) with 64mb.

    Yeah, I thought 2500 was low too, but for the life of me I can't think of a good explanation. I'm not using any stride in my arrays, and I'm using a single call to glDrawElements to render.

    Also, if anyone knows of an example using ATI_ARRAY_OBJECT I'd be very grateful, I can't make that work at all!

    Thanks in advance.

  4. #4
    Member Contributor
    Join Date
    Jun 2002
    Posts
    68

    Re: Maximum vertex array size

    Are you sure that you calculated the size of your arrays (vertex, color, normal) correctly. I came up with a similar problem you had, and I found that after 370 verticies glDrawElements would crash. It took me a long time to determine that the sizes of my arrays were calculated wrong.

    For a quick error detection, make all your arrays, (vertex, color and normal) larger than you need and see if the maximum is still 2500.

  5. #5
    Member Contributor
    Join Date
    Jun 2002
    Posts
    68

    Re: Maximum vertex array size

    Oh ya, also check your index array to see if it tries to index a vertex higher then vertex 2500.

    Hope this helps.

  6. #6
    Senior Member OpenGL Guru zed's Avatar
    Join Date
    Nov 2010
    Posts
    2,466

    Re: Maximum vertex array size

    it sounds like a problem with your code
    btw for a gf/tnt for optimal speed 4096 verts indices (or less) is recommended, u can use more but performance will not be optimzal

  7. #7
    Junior Member Newbie
    Join Date
    Jan 2002
    Location
    London, England, UK
    Posts
    14

    Re: Maximum vertex array size

    Thanks for the help guys! it probably is a problem with my code somewhere, guess I'll just have to keep fiddling with it.

    Cheers.

Similar Threads

  1. Maximum array size for uniform attribute not matching up
    By giordi in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 06-04-2016, 07:33 AM
  2. Maximum array size in geometry shader
    By Rodan in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 09-13-2007, 09:10 AM
  3. size and stride in Vertex Array
    By Nil_z in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 09-22-2004, 05:41 PM
  4. Maximum total size of vertex arrays via ATI_vertex_array_object?
    By Ostsol in forum OpenGL: Advanced Coding
    Replies: 12
    Last Post: 03-10-2003, 05:57 AM
  5. Optimal Vertex Array Size
    By HenryR in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 10-30-2000, 12:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean