Skip to content

GS/GL: Try to use glBindTextures for binding multiple srv slots.#13325

Closed
lightningterror wants to merge 1 commit intomasterfrom
gs_gl_bind_slots
Closed

GS/GL: Try to use glBindTextures for binding multiple srv slots.#13325
lightningterror wants to merge 1 commit intomasterfrom
gs_gl_bind_slots

Conversation

@lightningterror
Copy link
Copy Markdown
Contributor

Description of Changes

GS/GL: Try to use glBindTextures for binding multiple srv slots.
Use glBindTextures for 2 slots or more, should be generally faster, otherwise use glBindTextureUnit.

Rationale behind Changes

Speed.

Suggested Testing Steps

Try games such as Sly 2, Star ocean, and other games that could use 2-3 slots (blending, palette tex), see if there's any speed up and if it's worth adding this, benchmark it.

Did you use AI to help find, test, or implement this issue or feature?

No.

Use glBindTextures for 2 slots or more, should be generally faster, otherwise use glBindTextureUnit.
@lightningterror lightningterror marked this pull request as ready for review October 20, 2025 22:49
@lightningterror
Copy link
Copy Markdown
Contributor Author

Not worth it, basically no difference, maybe if we used more slots then yes.

@lightningterror lightningterror deleted the gs_gl_bind_slots branch November 19, 2025 14:18
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.

2 participants