Browse files

Use post render frame for tile pruning

We should discuss whether post render functions must be run after each render frame or not.  If these can be run after multiple render frames, it would make sense to increase the timeout.  As it is, it looks like post render functions are run for every render.  Hard to see what the benefit is in this case.
  • Loading branch information...
1 parent 8defe3a commit e9fb83d4ee3b24350994e736f3ffce6204fe8069 @tschaub tschaub committed Feb 18, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ol/renderer/canvas/canvasvectorlayerrenderer.js
@@ -334,7 +334,7 @@ ol.renderer.canvas.VectorLayer.prototype.renderFrame =
this.renderedExtent_ = tileRangeExtent;
if (!this.pendingCachePrune_) {
this.pendingCachePrune_ = true;
-, this), 0);
+ frameState.postRenderFunctions.push(goog.bind(this.pruneTileCache_, this));

0 comments on commit e9fb83d

Please sign in to comment.