# glBufferData vs glBufferSubData Performance

**URL:** <https://community.khronos.org/t/glbufferdata-vs-glbuffersubdata-performance/59209>\
**Category:** OpenGL: Advanced Coding\
**Created:** [November 20, 2009, 1:53am UTC](https://community.khronos.org/t/glbufferdata-vs-glbuffersubdata-performance/59209 "2009-11-20T01:53:43Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Pierre\_Boudier](https://community.khronos.org/letter_avatar_proxy/v4/letter/p/5f9b8f/32.png) [@Pierre\_Boudier](https://community.khronos.org/u/Pierre_Boudier)\
**Post date:** [November 20, 2009, 8:36am UTC](https://community.khronos.org/t/glbufferdata-vs-glbuffersubdata-performance/59209/3 "2009-11-20T08:36:36Z")

</div>

hi,

if you use BufferSubData, then there is a synchronization so that you don’t write over a buffer already being used. however, if that is the first time you write to this buffer, there is no synchronization required, so your two API calls should not be that bad.

regards,

Pierre B.  
AMD Fellow.

---

_[View the full topic](https://community.khronos.org/t/glbufferdata-vs-glbuffersubdata-performance/59209)._
