Results 1 to 2 of 2

Thread: VBOs and binding multiple times

  1. #1
    Guest

    VBOs and binding multiple times

    Say you have a vertex buffer object containing 300 vertices, and you have 100 faces which access this vertex object, each sorted by a material ID (say, 10 different materials). If I bind the vertex object 10 different times (for the 10 different materials) during a frame, will this be a severe performance hit? Will it go and transform the vertex buffer object each of the 10 times? Or is it safe to use it like this?

  2. #2
    Senior Member OpenGL Guru Relic's Avatar
    Join Date
    Apr 2000
    Posts
    2,450

    Re: VBOs and binding multiple times

    Binding doesn't mean transforming, it sets the base address of the data.
    The start address is associated with gl..Pointer and the call to the drawing function (glDrawElements etc.) finally tells OpenGL which of the data in the arrays to use.

Similar Threads

  1. VAO & binding multiple VBOS
    By Dariusz in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 01-19-2019, 11:51 AM
  2. Replies: 9
    Last Post: 11-02-2018, 08:16 AM
  3. Binding Multiple VBOs and EBOs to VAO?
    By sylorr in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 07-13-2018, 08:56 PM
  4. Painting the same texture multiple times
    By fhazubski in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-26-2016, 03:25 AM
  5. Binding multiple VBOs in one call
    By imported_huntc in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 07-20-2007, 07:59 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