Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileLoader: add abortController with manager (#20705) #29634

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

moshuiyan
Copy link

Related issue: #20705

Description

Use manager to abort all fileLoader
As for imgLoader, the cancellation method has not been implemented yet

In most cases, it is necessary to cancel all requests currently in progress.
Aborting requests is done to clear the HTTP request queue and increase the priority of new requests

If someone wishes to cancel individual requests, I wonder if this can be determined in the code, rather than only thinking about canceling after the request has already been sent.

Copy link

github-actions bot commented Oct 13, 2024

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 689.92
170.93
690.05
170.97
+132 B
+43 B
WebGPU 814.81
219.39
814.94
219.43
+132 B
+46 B
WebGPU Nodes 814.32
219.25
814.45
219.3
+132 B
+46 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Before After Diff
WebGL 462.94
111.81
462.94
111.81
+0 B
+0 B
WebGPU 537.62
145.06
537.62
145.06
+0 B
+0 B
WebGPU Nodes 493.74
134.79
493.74
134.79
+0 B
+0 B

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.

1 participant