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. QT and OpenGL for games
Forum Updated to NodeBB v4.3 + New Features

QT and OpenGL for games

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 3.3k Views 1 Watching
  • 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.
  • K Offline
    K Offline
    kantaki
    wrote on last edited by
    #1

    I already asked something similar on SO http://stackoverflow.com/questions/13892384/qt-and-opengl-for-game-development

    The first reply says that for games its recommended to use something like GLFW over QT because the latencies of the QT eventloop are somewhat unpredictable.

    Can you confirm this?

    In general what other pro and cons do I have with QT vs GLFW / SDL?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      I think that answer over on SO is misleading.

      • Signals and slots typically do not use the event loop at all. Think of them as function calls. There are exceptions to that rule, though.
      • If signals/slots were using the event loop, then that would improve latency as you do less before going back to the event loop.

      As with all event loops you need to make sure not to block it for too long. That is true with all event loops out there, independent of whether it is the one in Qt, GLFW or SDL.

      1 Reply Last reply
      0
      • Z Offline
        Z Offline
        ZapB
        wrote on last edited by
        #3

        I agree with Tobias. In fact Qt5 with QWindow, QOpenGLContext and friends is actually a very nice alternative to SDL, glut etc.

        How you keep the event loop responsive is entirely down to what you do in the main thread. You can of course offload your rendering to a worker thread - Qt Quick 2 does exactly this.

        Nokia Certified Qt Specialist
        Interested in hearing about Qt related work

        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