Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8193267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:25:26+00:00 2026-06-07T04:25:26+00:00

It seems cleaner to me to unbind using glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0) and/or glBindBuffer(GL_ARRAY_BUFFER, 0) at

  • 0

It seems cleaner to me to unbind using glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0) and/or glBindBuffer(GL_ARRAY_BUFFER, 0) at the end of a given draw call. I like being sure that nothing is bound that should not be; however, is there much of a performance hit to this?

Would anyone consider doing it the “clean” way to be at all useful? Or should I just go down the fast & sloppy route?

(Yes, I’m aware that the bound buffer object will be replaced by the next buffer object to be bound on that target, anyway — whether in this or the next render update. And yes, I could do performance tests. But a quick human response would be nice.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T04:25:29+00:00Added an answer on June 7, 2026 at 4:25 am

    I would unbind for cleanliness while coding and then optimize it all away near release.

    The benefits are that you can reorganize your code without worrying about state changes, but still have optimized state changes in the end. And you’ll only be spending a fraction of the time on the actual optimization.

    In terms of performance hit, if you’ve got thousands of additional unbind calls there will be some overhead, but it’s unlikely that it’ll be your bottleneck.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Seems like there should be... Right now it just seems like magic that you
Seems like a standard approach for an ioc when given a scenario like (C#
I was using Sonar to make my code cleaner, and it pointed out that
I'm using a queue service that seems to only allow me to send a
Seems to be a problem that many people have, but all the answers I
Seems that This will be an easy question for you but this problem is
Seems like i need some help with a project. I have a routine ,
Seems like cuke doesn't show the full error message (at least when problem occurs
Okay, this code gives me exactly what I want but it seems that it
Just looking for some advice regarding a structure that I am using in some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.