What's the best practice to use the pbo to upload multi textures?

by Sheldon Wang   Last Updated January 11, 2019 10:13 AM

I have a basic model to upload textures as shown in the following picture.enter image description here

I design this for several reasons:

  1. Only the primary thread owns the OpenGL context, so I choose to create buffers, map buffers and unmap buffers in the primary thread.
  2. I have many pictures to load and I don't want them to block the primary thread, so I use the subthread to load images and copy the memory.

Here are my questions:

  1. Is my model correct?
  2. Is my model the best practice?
  3. Should I create a PBO for each picture or create two PBO for all pictures and use them in turn?
  4. Should I use a shared context?

Thank you for helping me out



Related Questions


DirectX11 bind all textures at once?

Updated September 08, 2017 22:13 PM

Best way to add and remove quads in a VBO?

Updated January 06, 2017 08:05 AM

Multiple semi-dynamic objects in one vbo

Updated August 13, 2015 18:05 PM