Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8254577

Lanai - SwingMark performance with Metal is about 90% that of OpenGL on discrete graphics card

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • CPU:
      x86_64
    • OS:
      os_x

      Description

      With Discrete graphics card enabled on MBP 16" with Retina display and macOS 10.15.6, SwingMark numbers are greater (indicating lower performance) for Metal as compared to OpenGL.


      OpenGL : javax.swing.plaf.metal.MetalLookAndFeel
      ----------------------------------------------------------------------
      Startup Time: 990
      Sub-Menus = 252 (Paint = 0)
      TextArea = 592 (Paint = 693)
      Sliders = 643 (Paint = 502)
      Lists = 367 (Paint = 493)
      Table Rows = 384 (Paint = 213)
      Tree = 709 (Paint = 814)
      Score: 4039

      Metal : javax.swing.plaf.metal.MetalLookAndFeel
      ------------------------------------------------------------------
      Startup Time: 1238
      Sub-Menus = 204 (Paint = 0)
      TextArea = 637 (Paint = 693)
      Sliders = 1038 (Paint = 502)
      Lists = 373 (Paint = 493)
      Table Rows = 477 (Paint = 213)
      Tree = 1177 (Paint = 814)
      Score: 5239




      OpenGL : javax.swing.plaf.nimbus.NimbusLookAndFeel
      ---------------------------------------------------------------------------
      Startup Time: 1008
      Sub-Menus = 1170 (Paint = 0)
      TextArea = 423 (Paint = 602)
      Sliders = 923 (Paint = 502)
      Lists = 352 (Paint = 493)
      Table Rows = 401 (Paint = 212)
      Tree = 648 (Paint = 814)
      Score: 5050


      Metal : javax.swing.plaf.nimbus.NimbusLookAndFeel
      -----------------------------------------------------------------------
      Startup Time: 1248
      Sub-Menus = 1515 (Paint = 0)
      TextArea = 585 (Paint = 602)
      Sliders = 885 (Paint = 502)
      Lists = 361 (Paint = 493)
      Table Rows = 500 (Paint = 212)
      Tree = 1242 (Paint = 814)
      Score: 6468

        Attachments

        1. copyArea_compute_shader.txt
          8 kB
          Ajit Ghaisas
        2. frames_on_discrete_card.png
          71 kB
          Ajit Ghaisas
        3. frames_on_integrated_card.png
          118 kB
          Ajit Ghaisas

          Issue Links

            Activity

              People

              Assignee:
              aghaisas Ajit Ghaisas
              Reporter:
              aghaisas Ajit Ghaisas
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: