Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8104949 Poor Performance for Typical Apps
  3. JDK-8105599

boundsInScene more costly than its worth

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: P2 P2
    • fx1.2
    • None
    • javafx
    • None

      Experience in building FX apps has shown that boundsInScene is rarely used (I'm not even aware of anybody using it currently, except maybe in one demo). It can be computed by developers with a simple bound function.

      However, boundsInScene contributes greatly to the cost of updating the scene graph. Without bounds in scene we could:
          - Remove notification of transformed bounds changes
          - Refactor painting to compute transformed bounds as it goes rather than needing transformed bounds ahead of time
              - This would allow us to no longer cache or use transformed bounds
              - This would allow us to remove walking down the tree when transforms change (there are a couple niggles but it should be true)

      Walking down the tree has been shown to cut in half our FPS in some situations (such as BrickBreaker with lots of balls).

            rbair Richard Bair (Inactive)
            rbair Richard Bair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: