Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


minimize glDrawElements or glBindBuffer...?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 Funkymunky   Members   -  Reputation: 660

Like
0Likes
Like

Posted 26 December 2012 - 04:24 PM

I'm doing VBO based rendering.  Which should I minimize, switching between the active VBO or the number of draw calls?



Sponsor:

#2 santa01   Members   -  Reputation: 307

Like
2Likes
Like

Posted 26 December 2012 - 05:52 PM

OpenGL standard doesn't describe how VBO binding should be implemented internally, I guess this would be vendor specific, whereas reducing draw calls would give you an average performance boost.



#3 powly k   Members   -  Reputation: 653

Like
0Likes
Like

Posted 26 December 2012 - 08:58 PM

Why can't you minimize both? You pretty much only need a VBO and draw call per every different kind of a shader you're going to use.



#4 mhagain   Crossbones+   -  Reputation: 8138

Like
0Likes
Like

Posted 27 December 2012 - 02:44 AM

You don't even need a VBO per-shader, you could in theory have one big VBO containing all of your scene geometry and then adjust the params of your draw calls to use the appropriate ranges within it.


It appears that the gentleman thought C++ was extremely difficult and he was overjoyed that the machine was absorbing it; he understood that good C++ is difficult but the best C++ is well-nigh unintelligible.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS