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

BufferAttribute: warnOnce for deprecated methods #27595

Merged
merged 1 commit into from
Jan 19, 2024

Conversation

hybridherbst
Copy link
Contributor

@hybridherbst hybridherbst commented Jan 19, 2024

Description

Some libraries and utlilities update meshes a lot, for example particle systems like three.quarks.
This PR changes the warning on using deprecated buffer updateRange methods to warnOnce to prevent tens of thousands of logs per second.

image

This contribution is funded by Needle

Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Filesize dev Filesize PR Diff
673.1 kB (167.1 kB) 673.1 kB (167.1 kB) -20 B

🌳 Bundle size after tree-shaking

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

Filesize dev Filesize PR Diff
453.9 kB (110.1 kB) 453.9 kB (110.1 kB) -10 B

@Mugen87 Mugen87 merged commit 597b839 into mrdoob:dev Jan 19, 2024
12 checks passed
@Mugen87 Mugen87 added this to the r161 milestone Jan 19, 2024
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.

3 participants