Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. QRhi Device Choose
QtWS25 Last Chance

QRhi Device Choose

Scheduled Pinned Locked Moved Unsolved Game Development
7 Posts 2 Posters 582 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.
  • R Offline
    R Offline
    RSteffen
    wrote on last edited by
    #1

    Hi,
    updated my Qt to 6.8 this morning. Runs like a charm.
    Now I'd like to choose my QRHI backend device, as I have 2 GPU available. Unfortunately, QRHI grabs the slow first one. Any recommendation how to choose the physical devise for OpenGL, Vulkan, Direct3D and Metal?
    Richard

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      I am not an expert in that part of Qt but I don't think there is currently such an API.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • R Offline
        R Offline
        RSteffen
        wrote on last edited by
        #3

        This is what i found so far,
        "void QVulkanWindow::setPhysicalDeviceIndex(int idx)
        Requests the usage of the physical device with index idx. The index corresponds to the list returned from availablePhysicalDevices().
        By default the first physical device is used."
        But thats not what i need.

        1 Reply Last reply
        0
        • R Offline
          R Offline
          RSteffen
          wrote on last edited by
          #4

          I was able to switch to the faster GPU device by define in the main.cpp

          extern "C" {
          _declspec(dllexport) short NvOptimusEnablement = 1;
          _declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
          }

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            That's indeed highly specific to Vulkan. I was looking for something generic.

            That might be a feature request that you could create on the bug tracker.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • R Offline
              R Offline
              RSteffen
              wrote on last edited by
              #6

              No, also OpenGL now accept the faster NVidea GPU id=1.
              I make a ticket already.

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Can you post a link to the ticket ? It will make it easier to find for other people looking for a similar functionality.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                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