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

Text node computes complete text layout, even if clipped to a much smaller size

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: fx1.2
    • Fix Version/s: None
    • Component/s: javafx
    • Labels:
    • Environment:

      Vista, 6u14

      Description

      An interesting disovery when running the RT-5100 test case is that doubling the amount of text in Text.content will cause the pure FX version to run roughly half as fast. Doing the same for the versions using Swing JTextArea has no effect on framerate.

      So I'm lead to believe that the Text node always lays out its entire contents, even if only a small portion of it will end up on screen. This would explain the large disparity between Swing & FX performance.

      See notes in RT-5100 on how to run the test.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                prr Philip Race
                Reporter:
                bchristi Brent Christian
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2 weeks
                  2w
                  Remaining:
                  Remaining Estimate - 2 weeks
                  2w
                  Logged:
                  Time Spent - Not Specified
                  Not Specified