Skip the decode and the texture upload for a tile that was aborted
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 58/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript
- Domain
- performance
Research direction
Start with the default getTileData path and the pool.decode call referenced by the linked issue #876; check the repository for their file locations and existing cancellation handling. Consider both suggested signal checks, then verify that an aborted tile skips queued decoding and texture creation without triggering onError; the issue says neither approach has been measured.
Written by the indexing model from the issue text.
Description
[!NOTE]
This issue was written by Claude (Claude Code), not by @kylebarron.
Split out of #876, which is about the texture leak that #878 fixes. This is the work that is left once the leak is gone.
Problem
When a tile is aborted after its bytes have arrived, the rest of its load still runs:
- The decode finishes, because
pool.decodetakes no signal. - The default
getTileDatadoesn't checksignalbeforedevice.createTexture, so the texture is created and uploaded on the main thread.
With #878, that texture is freed as soon as the load finishes. So nothing leaks, but the decode and the upload are wasted, at the moment the app is busiest: a fast pan or zoom over many small tiles.
Possible fixes
Both are from #876, which links to the lines:
- Check the signal before creating textures in the default
getTileData, withsignal?.throwIfAborted()afterfetchTileresolves. deck.gl treats a cancelled tile that returns no data as not loaded, with noonError. - Pass
signalintopool.decode, so a decode still in the queue is skipped. That saves worker time as well.
Neither has been measured.
🤖 Written by Claude Code
- Dominant language
- TypeScript
- Stars
- 240
- Forks
- 34
- Avg merge
- 17h 24m
- Merged PRs (30d)
- 62
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from developmentseed/deck.gl-raster
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
developmentseed/deck.gl-raster#589 ·
Maintainers usually reply within 1 day
-
zarr
Difficulty 3/5 1-2 days Newbie friendliness 45/100
developmentseed/deck.gl-raster#889 ·
Maintainers usually reply within 1 day
-
Zooming in shows a checkerboard of placeholder tiles when overview tiles are smaller than full-resolution tilesPossibly taken @kylebarron claimed this 16 days ago. Openbug
Difficulty 4/5 3-5 days Newbie friendliness 25/100
developmentseed/deck.gl-raster#873 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
developmentseed/deck.gl-raster#866 ·
Maintainers usually reply within 1 day
-
bug cog
Difficulty 4/5 3-5 days Newbie friendliness 52/100
developmentseed/deck.gl-raster#857 ·
Maintainers usually reply within 1 day
All issues in developmentseed/deck.gl-raster
Similar issues
-
Add Alice&BotOpen
Difficulty 1/5 Under an hour Newbie friendliness 72/100
slavakurilyak/awesome-ai-agents#1048 ·
-
bot:ai-assisted component:faucet github_actions security status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
midnightntwrk/midnight-faucet-api#215 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
NanmiCoder/cc-haha#2034 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
MoonshotAI/kimi-code#5539 ·
Maintainers usually reply within 1 day
-
mobile prio:low
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
digitalfabrik/entitlementcard#3324 ·
Maintainers usually reply within 2 days