Share OpenGL frame buffer / render buffer between two applications

后端 未结 2 1827
慢半拍i
慢半拍i 2021-02-07 21:21

Let\'s say I have an application A witch is responsible for painting stuff on screen via OpenGL library. For tight integration purpose I would like to

2条回答
  •  执念已碎
    2021-02-07 22:22

    In my understanding, you won't be able to share the objects between the process under Windows, unless it's a kernel mode object. Even the shared textures and contexts can create performance hits also it has give you the additional responsibility of syncing the SwapBuffer() calls. Especially under windows platform the OpenGL implementation is notorious.

    In my opinion, you can relay on inter-process communication mechanisms like Events, mutex, window messages, pipes to sync the rendering. but just realize that there's a performance consideration on approaching in this way. Kernel mode objects are good but the transition to kernel each time has a cost of 100ms. Which is damns costly for a high performance rendering application. In my opinion you have to reconsider the multi-process rendering design.

提交回复
热议问题