I use an AMD card, playing on Bazzite. How and when, do i know when its best to use Vulkan or Directx on linux?

  • SeekPie@lemm.ee
    link
    fedilink
    English
    arrow-up
    4
    ·
    7 months ago

    What about OpenGL? What’s that and should I choose it instead of DirectX?

    • Xideta@ani.social
      link
      fedilink
      English
      arrow-up
      14
      ·
      7 months ago

      OpenGL is a bit like Vulkan, but discontinued since… 2014, with a single update since then. It was actually stopped because Vulkan seemed better, and both API’s were maintained by the same organisation.

      In general it’s more likely to work on older devices, but would be less performant than Vulkan.

      • SeekPie@lemm.ee
        link
        fedilink
        English
        arrow-up
        2
        ·
        7 months ago

        So if a game has OpenGL and DirextX as options such as TF2), it’s generally better to pick DirectX?

        • entropicdrift@lemmy.sdf.org
          link
          fedilink
          English
          arrow-up
          2
          ·
          7 months ago

          If you have an Nvidia GPU definitely pick DirectX. On AMD it’s more of a tossup, depends on the game and the features in question but generally it won’t need to translate OpenGL, so it has higher maximum performance potential.

    • ozymandias117@lemmy.world
      link
      fedilink
      English
      arrow-up
      7
      ·
      7 months ago

      To expand - DirectX is a proprietary Windows solution. Any time you pick it on Linux, it will run through a translation layer

      OpenGL/Vulkan are cross-platform

      OpenGL is to DirectX 11 as Vulkan is to DirectX 12

      Microsoft kept the same branding, but also followed in Vulkans/Metals footsteps of using lower level calls to the hardware. This makes the graphics drivers simpler, and can be way more performant because the CPU doesn’t have to do as much

    • Dark Arc@social.packetloss.gg
      link
      fedilink
      English
      arrow-up
      8
      arrow-down
      1
      ·
      7 months ago

      OpenGL is an older graphics API with a lot of issues I won’t get into here.

      You’re almost guaranteed to be better off using DXVK.