Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Multi threaded OpenGL

Multi threaded OpenGL

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 2.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Idan_Bachar
    wrote on last edited by
    #1

    Hello

    I've got a problem which I'm not entirely sure why happens but it has something to do with calls to doneCurrent.
    I'm using Qt under X and when rendering from a different thread the application sometimes reaches a dead lock on some mutex inside
    _XNotify. The thread calls makeCurrent then uses opengl to draw stuff, then swapBuffers and then doneCurrent.
    When calling makeCurrent only once and not every render loop the application seems to run fine.
    Even when doing the same in the example code provided "here":http://doc.qt.nokia.com/qq/qq06-glimpsing.html#writingmultithreadedglapplications and calling makeCurrent and doneCurrent each time causes it to deadlock.
    My question is if there a reason such a thing should happen, that is if calling makeCurrent/doneCurrent each time is not proper usage.
    And also general multi thread OpenGL tips are welcomed.

    Thanks.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved