Skip to content

2D Texture Arrays - #1786

Merged
nstlaurent merged 50 commits into
devfrom
2d-texture-array
Sep 15, 2026
Merged

nstlaurent merged 50 commits into
devfrom
2d-texture-array

Conversation

@nstlaurent

Copy link
Copy Markdown
Collaborator

Implements 2D texture arrays. Packs same size textures for level geometry and uses render buckets for sprites (32x32, 64x64, 128x128, 256x256, and 512x512).

Drastically reduces draw calls and makes a massive difference on older iGPUs. For most doom maps flats are 64x64 so all floors and ceilings get packed into one array for a single draw call. Sprites for most maps will now be less than 10 draw calls. Makes a massive difference on slaughter maps with a lot of unique sprites.

Adds drawcounts command to view detailed draw count information.

@nstlaurent
nstlaurent merged commit d5938dc into dev Sep 15, 2026
1 check passed
@nstlaurent
nstlaurent deleted the 2d-texture-array branch September 15, 2026 00:24
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.

1 participant