Skip to content

Introduce AbortController in PagedSplats to abort ongoing fetches#392

Open
mrxz wants to merge 1 commit into
sparkjsdev:mainfrom
mrxz:splat-pager-abort-fetchers
Open

Introduce AbortController in PagedSplats to abort ongoing fetches#392
mrxz wants to merge 1 commit into
sparkjsdev:mainfrom
mrxz:splat-pager-abort-fetchers

Conversation

@mrxz

@mrxz mrxz commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Fixes #384

Once the SplatPager started a fetcher, it would always run to completion, meaning awaiting the full network request, using the worker to decode the result and processing the fetched result all the way to uploading the result. This PR introduces an AbortController in PagedSplats to signal when it is disposed. Upon disposal it will

There are still some gaps where work can be done (or attempted) for a PagedSplats instance that has already been disposed. However these are very late in the process (e.g. uploading) so unlikely to gain much by adding more logic to prevent this. By far the most time is spent on the network fetch and decoding, both of which is properly covered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Queued Chunks in chunked RADs are not disposed on scene change

1 participant