From 457f4f804983ab0bfa106efa925fe7187effd99d Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Fri, 21 Feb 2014 16:37:47 +0000 Subject: [PATCH] test: remove code that rendered stale map data tiles from cache before retrieving from the network - will try it for a while and see if it makes things noticably more responsive --- code/map_data_request.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/map_data_request.js b/code/map_data_request.js index c0ec93ab..c227492d 100644 --- a/code/map_data_request.js +++ b/code/map_data_request.js @@ -253,10 +253,10 @@ window.MapDataRequest.prototype.refresh = function() { // no fresh data // render the cached stale data, if we have it. this ensures *something* appears quickly when possible - var old_data = this.cache && this.cache.get(tile_id); - if (old_data) { - this.render.processTileData (old_data); - } +// var old_data = this.cache && this.cache.get(tile_id); +// if (old_data) { +// this.render.processTileData (old_data); +// } // tile needed. calculate the distance from the centre of the screen, to optimise the load order