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

TriangleMesh slows down mouse event delivery

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 8
    • javafx

      I run the Surface benchmark with -resolution 400. When I start moving the mouse over the scene fps noticeably drop. One factor is time spent in TriangleMesh.computeIntersectsFace(). Two reasons are obvious:
      1. TriangleMesh.impl_computeIntersects() doesn't break from the loop when an intersecting face is found
      2. TriangleMesh.computeIntersectsFace() itself generates a lot of short lived objects (Point3D), which causes significant delays due to GC

      I reproduce the problem on Windows and it kills performance on embedded.

            psafrata Pavel Šafrata
            omazurov Oleg Mazurov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: