Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to using Uniform Buffer Objects (UBOs) #2682

Open
jellysquid3 opened this issue Aug 16, 2024 · 0 comments
Open

Migrate to using Uniform Buffer Objects (UBOs) #2682

jellysquid3 opened this issue Aug 16, 2024 · 0 comments
Labels
T-enhancement Type: Enhancement

Comments

@jellysquid3
Copy link
Member

Sodium (for historical reasons) still uses uniform variables. We should replace these usages with uniform buffer objects, which have a number of advantages:

  • Dead code elimination in the shader compiler will not remove variables from buffer block declarations. This makes modifying shaders much less error prone and simplifies the shader program interfaces in Java.
  • Using a streaming buffer to copy memory from the host to device is faster and involves fewer OpenGL function calls.
@jellysquid3 jellysquid3 added the T-enhancement Type: Enhancement label Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-enhancement Type: Enhancement
Projects
None yet
Development

No branches or pull requests

1 participant