
396 V Transfers
Function Usage hint Destination Transfer
memory rate (GB/s)
glBufferData /
glBufferSubData
GL STATIC DRAW device 3.79
glMapBuffer /
glUnmapBuffer
GL STREAM DRAW pinned n/a (pinned in
CPU memory)
glMapBuffer /
glUnmapBuffer
GL STATIC DRAW device 5.73
Table 28.1. Buffer-transfer performance on an Intel Core i5 760 and an NVIDIA GeForce
GTX 470 with PCI-e 2.0.
glMapBufferRange for all transfers ensures the best performance. An example
application is available on the OpenGL Insights website, www.openglinsights.com,
to measure the transfer rates and other behaviors of buffers objects; a few results a re
presented in Tables 28.1 and 28.2.
Pinned memory ...