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

Scene.MouseHandler should be optimized

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: fx1.2
    • Fix Version/s: fx2.0
    • Component/s: javafx
    • Labels:
      None

      Description

      Currently Scene.MouseHandler is called on every pulse, and if there's was a single mouse event, it will continuously go through the list of nodes, doing picking etc, even if the mouse is off the scene.

      MouseHandler.process() is the number two allocation spot in the profiler for the new stack (there's more pressing stuff in the marina stack that's even worse).

      To reproduce: run attached app with preset number of nodes (like 2000), move the mouse over the scene, notice that MouseHandler.process() is called even when the mouse is moved from the scene:
       javafx Fire -2000

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tdv Dmitri Trembovetski (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: