Bug 12343 - Optimize map_hittest
Summary: Optimize map_hittest
Status: NEW
Alias: None
Product: roadster
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Jeff Garrett
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-08 05:29 UTC by Jeff Garrett
Modified: 2007-09-08 09:54 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Jeff Garrett 2007-09-08 05:29:56 UTC
It's high in profiles.
Comment 1 Ian McIntosh 2007-09-08 09:54:40 UTC
map_hittest is used in two places:

1) when clicking, to find out what the user clicked on.

2) when moving the mouse, to show tooltips of what the mouse cursor is over (roads, POI, etc.)

It is plenty fast for the first use.

For the second use, and IF you want to keep the tooltip feature, instead of optimizing map_hittest, I suggest only showing a tooltip when the mouse has stopped moving for around 100 milliseconds.

It would be more consistent (GTK+ has a tooltip delay) and wouldn't waste CPU time like it does now.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.