What's the faster glUniform4f/glUniform4fv with consideration all kind of optimization?

Viewed 14311

Here are signatures.

glUniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
glUniform4fv(GLint location, GLsizei count, const GLfloat *v);

In my humble opinion, former should be faster because values can be passed directly from registers without fetching from memory. However, I want to hear many opinions.

3 Answers
Related