Repository navigation
perf: use source.coop proxy for dynamical Zarr example - #471
Conversation
| selection, | ||
| getTileData, | ||
| renderTile, | ||
| maxRequests: 0, |
There was a problem hiding this comment.
This should still be a positive number, not 0, or else request cancellation is never applied.
I.e. if you pan around the world instantly, all of those requests that were visible for a fraction of a second will still be allowed to finish.
I think 20 is a reasonable suggestion
There was a problem hiding this comment.
| maxRequests: 0, | |
| maxRequests: 20, |
There was a problem hiding this comment.
It surprises me that this effects the behavior of cancelling requests that are out of the viewport, but if so then I agree
There was a problem hiding this comment.
Hmm, perhaps I spoke too soon. I can't remember exactly how deck.gl's request cancellation works
There was a problem hiding this comment.
I just verified that my initial hunch was right.
If you set maxRequests: 0 you will never get request cancellation. When set to maxRequests: 0, I tested panning very fast and I never saw a request get cancelled. With 20 seconds of fast panning I requested 3GB of data chunks 😄
I think this is because the request scheduler works by checking:
- What are the tiles we have yet to request?
- When is there new slots to request tiles
I guess it's essentially a semaphore?
When maxRequests: 0, the request has already been sent, so deck.gl doesn't see it to cancel it...?
I'm not sure this makes sense, but it's what I see in practice.
Change list
maxRequestshigher than the default of6