Skip to content

Comments

Change OpenGL textures array to vector, and double texture cache#6249

Open
garrettjoecox wants to merge 1 commit intoHarbourMasters:developfrom
garrettjoecox:change-ogl-textures-to-vector
Open

Change OpenGL textures array to vector, and double texture cache#6249
garrettjoecox wants to merge 1 commit intoHarbourMasters:developfrom
garrettjoecox:change-ogl-textures-to-vector

Conversation

@garrettjoecox
Copy link
Contributor

@garrettjoecox garrettjoecox commented Feb 11, 2026

DirectX & Metal were already using vectors for this array, OpenGL had it at a static size which we overflowed due to loading +524 textures for ImGui (LoadGuiTexture) + 500 in game textures (TEXTURE_CACHE_MAX_SIZE) > 1024

Would like someone to verify on DirectX, OpenGL & Metal that the cache doubling doesn't break anything. (Hopefully should improve perf by a tiny amount)

LUS PR

Build Artifacts

Copy link
Contributor

@Pepper0ni Pepper0ni left a comment

Choose a reason for hiding this comment

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

Gave it a quick test and it fixed my issues 🥳

@Malkierian
Copy link
Contributor

How should I test to try to break it?

@serprex
Copy link
Contributor

serprex commented Feb 21, 2026

@Malkierian I think enough other people have run into this & had this fix it that we can say it's good

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.

4 participants