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

Improve Path rendering performance


    • Type: Enhancement
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: fx2.1
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:
    • Environment:

      Processor: Intel Core 2 DUO 1.80 Ghz
      Memory: 3 GB RAM
      Operating system: Windows XP Professional 2002 Service Pack 3
      Graphic card: NVIDIA Quadro NVS 130M
      Java: 1.7.0_03
      JavaFX: 2.1.0-b16


      I am developing some tests to achieve de loading of geographic information from a shapefile using JavaFX 2.0. I read the shapefile data using the feature facilites provided by GeoTools API, and rendering these data using JavaFX Path class (with MoveTo and LineTo). I have also implemented a zoom operation associated to mousePressed event, that simply changes the scaleXProperty and scaleYPropety in the map.

      I have noticed that if the map is quite complex, the zoom operation is very slow. For example, with a map with 20000 lines the performance is very poor when making the zoom this way. The result is almos the same if I use Polylines to represent the map info.

      I have made some tests with the scaling operation and the thing is that the problems start when I use Path objects. For example, If I render a scene with 40000 rectangles (object Rectangle) the scaling works fine, but if a render the same scene using 40000 lines (in paths) the performance falls down dramatically. Is this normal?


          Issue Links



              • Assignee:
                duke J. Duke (Inactive)
              • Votes:
                13 Vote for this issue
                24 Start watching this issue


                • Created: