Jump to content
  • Advertisement
Sign in to follow this  
bobbyucsd006

One .VBO on multiple processes?

This topic is 2608 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello,

I am currently generating geometry using Cuda, writing to a buffer which I've mapped to a vbo using cudaGLRegisterBufferObject, but all of that is on one process. I want to then render the geometry on another process using the same vbo. However, when I tried drawing it on the second process using the vbo id I got from the first, it crashed and nothing would render. Is it at all possible to read from the same VBO across multiple processes?

Share this post


Link to post
Share on other sites
Advertisement
Another process? That is not possible.
If you want to render from another thread, it is possible.

For multiple windows
http://www.opengl.org/wiki/Platform_specifics:_Windows#Multiple_Windows

From another thread, it would be similar, just call wglMakeCurrent

Share this post


Link to post
Share on other sites

Another process? That is not possible.

Well, there's EXT_import_context, which would allow multiple processes to share a context. But since it relies on GLX, it only works on Linux. And eventhough I never tried it, my gut feeling tells me that it would be excruciatingly slow (indirect context shuffled over the already highly inefficient X protocol).

You could however do process-spanning rendering by using some form of IPC, although you could not directly share any OpenGL objects or state. Boost interprocess has some nice shared memory concepts you can use for that.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!