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

Low effects performance with D3D9Ex enabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8u20
    • 8u20
    • javafx
    • None

      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.

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

              Created:
              Updated:
              Resolved:
              Imported: