Announcement

Collapse
No announcement yet.

GTK4 Continues Improving Graphics Offload & DMA-BUF Integration

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • GTK4 Continues Improving Graphics Offload & DMA-BUF Integration

    Phoronix: GTK4 Continues Improving Graphics Offload & DMA-BUF Integration

    There is a new post on the GTK blog outlining some of the recent enhancements to this open-source toolkit for benefiting the graphics/GPU offloading capabilities...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite

  • #2
    Is GtkGLArea only used OpenGL?

    What if you want to use Vulkan, Metal or DirectX 12?

    Comment


    • #3
      Originally posted by uid313 View Post
      Is GtkGLArea only used OpenGL?

      What if you want to use Vulkan, Metal or DirectX 12?
      Next time, try searching online first. Tldr: Don't use an OpenGL specific widget if you don't want OpenGL. If you want Vulcan, you use https://docs.gtk.org/gdk4/class.VulkanContext.html

      Comment


      • #4
        Originally posted by spicfoo View Post

        Next time, try searching online first. Tldr: Don't use an OpenGL specific widget if you don't want OpenGL. If you want Vulcan, you use https://docs.gtk.org/gdk4/class.VulkanContext.html
        The funny thing here is that you are (sort of?) wrong now with the offload work being discussed in this topic.

        The offload widget allows you to offload the GLArea, so even if the rest of the application is rendered in Vulkan or Cairo, or DIrectX or whatever comes in the future, the point of the offload is to allow this specific widget to be GL.

        EDIT - There is a merge request today marking VulkanContext as deprecated since the release of GTK 4.14.
        Last edited by You-; 18 April 2024, 01:06 PM.

        Comment


        • #5
          Originally posted by spicfoo View Post

          Next time, try searching online first. Tldr: Don't use an OpenGL specific widget if you don't want OpenGL. If you want Vulcan, you use https://docs.gtk.org/gdk4/class.VulkanContext.html
          But VulkanContext is named VulkanContext not VulkanArea and VulkanContext is under the Gdk namespace, while GLArea is under the Gtk namespace.

          Comment


          • #6
            Originally posted by uid313 View Post

            But VulkanContext is named VulkanContext not VulkanArea and VulkanContext is under the Gdk namespace, while GLArea is under the Gtk namespace.
            Use the doc to understand the widget hierarchy. I am sure you can browse through it and find out.

            Comment


            • #7
              Offload is a big part of the plan for switching the default renderer to Vulkan and still letting the GLArea widget to continue functioning.

              Comment


              • #8
                Nice performance improvements, too bad GTK4 is useless for anything more complex than a mobile app.

                Comment

                Working...
                X