I have an OpenGL Qt application that renders in two widgets using two different threads ("A" and "B") sharing the same QGLContext. So far this app runs on a Linux system with a single graphics card. I understand that when thread "A" renders in the first widget, thread "B" has to wait intil "A" finishes its work.
I was thinking about speeding up the app by using a system with two graphics cards (PCI Express) and two monitors. Then I don't have to share context and I should be able to use two different contexts for my two widgets. For simplicity, each card drives its own monitor. How would I initialize QGLContext in this case ? Is there a sample code I could use?
I use Linux 2.6/X11/Qt4.1.
Thanks,
Yuriy