-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
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
Source: Add dataReady
flag.
#27649
Source: Add dataReady
flag.
#27649
Conversation
📦 Bundle sizeFull ESM build, minified and gzipped.
🌳 Bundle size after tree-shakingMinimal build including a renderer, camera, empty scene, and dependencies.
|
What do you think of naming it |
Sounds good as well! 👍 I'll update the PR. |
It seems after I have regenerated the E2E screenshot for |
Sorry about the slow reply, this is great! I didn't get to integrating this yet, but this looks like it will solve our use case. Thank you! |
One note how this could be improved: Maybe three.js/src/renderers/WebGLRenderer.js Line 2391 in 841d2e7
|
Fixed #25133.
Description
This is an alternative implementation to #27572. It introduces a new flag
Source.dataReady
that allows to prevent the engine from uploading texture data. The texture will still be allocated though so it's possible to allocate the image/buffer and gradually fill/stream data into it.This PR should also solve the use case mentioned in #27572 (comment).
Since the flag is
true
by default, it should not affect existing apps.