schombert / Project-Alice

An open-source game
https://schombert.github.io/Project-Alice/
GNU General Public License v3.0
325 stars 56 forks source link

Port to OpenGL 3.3 #1707

Closed Nivaturimika closed 3 months ago

schombert commented 3 months ago

you should probably do all your glGetUniformLocation(open_gl.ui_shader_program, "texture_sampler") calls when you create the program and then store them, so that you don't have to do it again. Since these calls do string comparisons, they aren't entirely cheap, and in some situations we will be rebinding uniforms extremely frequently