-
Enhancement
-
Resolution: Unresolved
-
P4
-
fx2.1
-
All
In a test application (see e.g. RT-20452) I have created many shapes which
I want to select via mouse click. A mouse movement results in many
calls to the Node.contains method which in turn calls impl_configShape.
I noticed that all implementations of this method recreate the whole geometry
of the shape. If you are dealing with a scenario of 10s of thousands of lines
this looks like a terrible performance bottleneck. Why don't you check the
corresponding dirty bits to see whether the geometry or anyting else realy
has to be recreated to do a hit test?
I want to select via mouse click. A mouse movement results in many
calls to the Node.contains method which in turn calls impl_configShape.
I noticed that all implementations of this method recreate the whole geometry
of the shape. If you are dealing with a scenario of 10s of thousands of lines
this looks like a terrible performance bottleneck. Why don't you check the
corresponding dirty bits to see whether the geometry or anyting else realy
has to be recreated to do a hit test?