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

Scene.MouseHandler should be optimized

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P3 P3
    • fx2.0
    • fx1.2
    • javafx
    • None

      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

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

              Created:
              Updated:
              Resolved:
              Imported: