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

Texture: Clean up #26814

Closed
wants to merge 1 commit into from
Closed

Texture: Clean up #26814

wants to merge 1 commit into from

Conversation

linbingquan
Copy link
Contributor

Related issue: #XXXX

Description

Remove unnecessary code for Texture.

@github-actions
Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Filesize dev Filesize PR Diff
648 kB (160.9 kB) 648 kB (160.9 kB) -10 B

🌳 Bundle size after tree-shaking

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

Filesize dev Filesize PR Diff
441.3 kB (107 kB) 441.3 kB (107 kB) -10 B

@@ -53,9 +53,9 @@ class Texture extends EventDispatcher {
this.internalFormat = null;
this.type = type;

this.offset = new Vector2( 0, 0 );
Copy link
Collaborator

@Mugen87 Mugen87 Sep 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was originally done to be more explicit and I don't think this needs refactoring.

Sorry but I'm really against such PRs since even if the review effort is minor it still costs time. And these PRs do not add a real value.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you're right.

This place is more intuitive if it's explicit.

I just revised the PR #26775, by the way to see this, feel can delete...

Maybe we need to do something more worthwhile

To be honest, I'd like to do some feature development, but I don't know how to start...

Anyway, thank you for your patience and your review time.

@Mugen87 Mugen87 closed this Sep 20, 2023
@linbingquan linbingquan deleted the dev-texture branch September 21, 2023 03:10
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.

None yet

2 participants