Skip to content

Support for 32-bit index buffers; refactor a bunch#17135

Draft
appgurueu wants to merge 6 commits into
luanti-org:masterfrom
appgurueu:refactor/indexbuf
Draft

Support for 32-bit index buffers; refactor a bunch#17135
appgurueu wants to merge 6 commits into
luanti-org:masterfrom
appgurueu:refactor/indexbuf

Conversation

@appgurueu
Copy link
Copy Markdown
Contributor

@appgurueu appgurueu commented Apr 25, 2026

Implements most of the proper solution for #12731. By "support" I mean implement them properly (not as a dead template variant) and make the code actually use them (e.g. mesh loaders).

Will probably toss the refactoring commits in a separate PR later.

How to test

Use fat models for entities. As it turns out the u16 assumption is ingrained in our mesh collector, so not that easy to lift for mesh nodes (see the commit aptly named "todo").

TODO

  • Massage collector, mapblock meshgen
  • Set the proper "max primitive count" limit for OpenGL ES 3.0 driver, though really the term is bullshit and it should be max index instead?

@appgurueu appgurueu added Maintenance Tasks to keep the codebase and related parts in order, including architectural improvements Bugfix 🐛 PRs that fix a bug @ Client rendering @ Engine Core What happens inside the very engine labels Apr 25, 2026
@appgurueu appgurueu changed the title Implement support for 32-bit index buffers; refactor a bunch Support for 32-bit index buffers; refactor a bunch Apr 25, 2026
@appgurueu appgurueu marked this pull request as draft April 25, 2026 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bugfix 🐛 PRs that fix a bug @ Client rendering @ Engine Core What happens inside the very engine Maintenance Tasks to keep the codebase and related parts in order, including architectural improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant