Skip to content

Conversation

@jfboeve
Copy link
Collaborator

@jfboeve jfboeve commented Jun 25, 2025

This PR is for caching uniform locations upon shader program creation. This will decrease the use of gl.getUniformLocation which can be very costly.

Thanks to the Flex team for testing.

without caching:
without_caching

with caching:
with-caching

@jfboeve jfboeve requested a review from wouterlucas June 25, 2025 09:49
Copy link
Contributor

@wouterlucas wouterlucas left a comment

Choose a reason for hiding this comment

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

Nice 👍

@wouterlucas wouterlucas added this pull request to the merge queue Jun 26, 2025
Merged via the queue into main with commit 3cffb58 Jun 26, 2025
2 checks passed
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.

3 participants