]> git.street.me.uk Git - andy/viking.git/commit
Disable autodownloading when dragging the map
authorGuilhem Bonnefille <guilhem.bonnefille@gmail.com>
Mon, 11 Oct 2010 20:44:17 +0000 (22:44 +0200)
committerGuilhem Bonnefille <guilhem.bonnefille@gmail.com>
Mon, 11 Oct 2010 20:44:17 +0000 (22:44 +0200)
commit1c6a6010661da96fd105ec42ad2f048df79fabbd
treefee20ce6b3064e07f07694d52c0c8a5474b15f48
parent348e86667fea13b65d71e4fbe9bf1a2b8ed84f6f
Disable autodownloading when dragging the map

I recently discovered that a recent commit introduce a significant
change on CPU usage.
The commit is 71eff775d86be02173e28421cea7f7d3f5a8344. It offers a
smooth pan when drag&drop, but it introduces a huge amount of tile
requests.

For exemple, when I drag the map, I quickly observe around 600
requests on local tile cache while around 10 requests would be enough.

The matter is, in order to keep a smooth dragging, the viewport is
requested to redraw completly. While doing this, all displayed maps
need to check their local cache. And this, for each X event.

This fix is a temporary one.
A better solution implies certainly a significant refactoring
of display/download.

Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
src/vikmapslayer.c
src/vikwindow.c
src/vikwindow.h