Results 1 to 3 of 3

Thread: QGLContext with multiple graphics cards

  1. #1
    Join Date
    Aug 2006
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QGLContext with multiple graphics cards

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QGLContext with multiple graphics cards

    If you don't have more than one CPU in your computer, you won't notice any significant difference, as threads won't execute in parallel, hence the two gfx cards won't render at the same time.

  3. #3
    Join Date
    Aug 2006
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QGLContext with multiple graphics cards

    We have more than one CPU and need to speed up graphics (as well as computations). One of the requirements is to have one widget always rendering. It is a medical <soft> real-time application and there is a great deal of computations and rendering involved.

Similar Threads

  1. how to corss compile for windows in Linux
    By safknw in forum Qt Programming
    Replies: 24
    Last Post: 13th May 2006, 05:23

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.