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

Node clip animation consumes a lot of CPU time when running inside JFXPanel

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • 7u6
    • 7u6
    • javafx
    • Window 7 64bit, JDK 1.6.0u31 32bit, JavaFX 2.2 32bit graphics scrum current bits

      On my quad core Windows laptop, the attached sample application consumes around 5% of available CPU time when launched as a "native" JavaFX application, and around 25% of available CPU time (that is, an entire CPU core), when launched inside a JFXPanel.

      I guess this has to do with non-rectangular clips being used by the application.

      To run the sample application inside a JFXPanel, launch it with the "embed" command line argument.

      The problem seems to be related to PERF-311 and RT-21740. However, the problem is not Mac specific and is reproducible on Windows, and profiling shows that D3DRTTexture.readPixels is not the main CPU consumer in this case.

      The problem affects WebView performance inside NetBeans, see RT-21629.

            kprazdnikwse Kirill.Prazdnikov (Inactive)
            vbaranov Vasiliy Baranov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: