Commit c6bcd03
authored
Prevent duplicate tile fetch jobs (#106)
Avoid duplicate tile downloads at low zoom levels by reusing already queued jobs
* Prevents wrapping tiles from being redundantly fetched multiple times
* `makeJobList()` now checks if a tile is already queued and reuses its buffer
* Maintains 1:1 alignment between `requiredTiles` and `tilePointers`1 parent e929b41 commit c6bcd03
1 file changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
228 | 237 | | |
229 | 238 | | |
230 | 239 | | |
231 | 240 | | |
232 | 241 | | |
233 | 242 | | |
234 | 243 | | |
235 | | - | |
236 | | - | |
| 244 | + | |
| 245 | + | |
237 | 246 | | |
238 | 247 | | |
239 | 248 | | |
| |||
0 commit comments