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

WebGLRenderer: warnOnce for deprecation notices #28904

Merged
merged 1 commit into from
Jul 17, 2024
Merged

Conversation

davcri
Copy link
Contributor

@davcri davcri commented Jul 17, 2024

This commit avoids flooding the console log with deprecation warnings.

Why?
Some libraries like pmndrs's postprocessing (see SSR ) call copyFramebufferToTexture in a loop, generating a lot of warning messages.

Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Filesize dev Filesize PR Diff
683.4 kB (169.2 kB) 683.3 kB (169.2 kB) -30 B

🌳 Bundle size after tree-shaking

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

Filesize dev Filesize PR Diff
460.5 kB (111.1 kB) 460.5 kB (111.1 kB) -30 B

@Mugen87 Mugen87 added this to the r167 milestone Jul 17, 2024
@Mugen87 Mugen87 merged commit 42fed7a into mrdoob:dev Jul 17, 2024
12 checks passed
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.

2 participants