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

Use 16-bit index buffers instead of 32 when unnecessary #81288

Merged
merged 1 commit into from
Sep 6, 2023

Conversation

darksylinc
Copy link
Contributor

It's a very simple fix.

There are various instances where Godot creates index buffers of 32-bit when 16-bit should've been preferred.

@darksylinc darksylinc requested a review from a team as a code owner September 3, 2023 23:00
@MewPurPur
Copy link
Contributor

To be sure, this is a micro-optimization, right? Or does it improve anything tangible?

@darksylinc
Copy link
Contributor Author

It's likely very micro.

I'm reviewing and as I find along what is wrong, I fix it. Specially when they're low hanging fruits like this one.

Copy link
Member

@clayjohn clayjohn left a comment

Choose a reason for hiding this comment

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

Looks great!

@clayjohn clayjohn modified the milestones: 4.x, 4.2 Sep 5, 2023
@YuriSizov YuriSizov merged commit c5562d1 into godotengine:master Sep 6, 2023
@YuriSizov
Copy link
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants