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

Path updates in a ScrollPane where content has a Scale transform are 100 times slower

    Details

      Description

      As per http://javafx-jira.kenai.com/browse/RT-11253?focusedCommentId=85027&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-85027
      When content inside a ScrollPane is transformed it must be wrapped in a Group so the bounds are calculated properly.
      In my application I have found that when I scale the content that is wrapped there is a massive drop in performance. When the scale on the wrapped content is 1.0 performance is reasonable.

      Run the attached test case and look at the times printed to the console as you drag nodes in the scene. Hit the one of the scale buttons and drag again. Times printed are approx 100x greater.

        Attachments

        1. fast.png
          fast.png
          136 kB
        2. ScrollPaneScalePathPerf.zip
          34 kB
        3. slow.png
          slow.png
          144 kB

          Issue Links

            Activity

              People

              • Assignee:
                msladecek Martin Sládeček
                Reporter:
                swpalmer Scott Palmer
              • Votes:
                0 Vote for this issue
                Watchers:
                16 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: