Why use multiple OpenGL context

后端 未结 4 1866
清酒与你
清酒与你 2021-02-05 16:31

For rendering I have a current GL context associated with a window. In the case where the application renders multiple scenes (for example using accumulation or different viewpo

4条回答
  •  天命终不由人
    2021-02-05 17:03

    IIRC, objects like textures and buffer objects can be shared between contexts, so technically you could create a second context in a second thread and load the textures asynchronously there, without worrying whether the first thread is performing the rendering.

提交回复
热议问题