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

Low effects performance with D3D9Ex enabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u20
    • Fix Version/s: 8u20
    • Component/s: javafx
    • Labels:
      None

      Description

      When D3D9Ex is enabled (-DdisableD3D9Ex=false), there is a significant performance drop in rendering big number of effects per frame, this can be seen in HelloEffects by adding bechmarking via Scene.snapshot.
      On the low-end machine, the hit is as much as 2.5 times.
      The root cause of it is the much slower nGetAdapterOrdinal native method which calls D3D GetAdapterMonitor.
      This method is repeatedly called by the GraphicsPipeline.getResourceFactory method.
      We should cache the mapping between the Screen and adapter.
      This is closely related to the RT-33475 and since we have stale Screens, we don't have a point where this cache can be cleaned.
      OTOH, it probably can be safely cleaned on each screen configuration change.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              vadim Vadim Pakhnushev
              Reporter:
              vadim Vadim Pakhnushev
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: