TriangleMesh slows down mouse event delivery

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: 8
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported: