PDA

View Full Version : mat3 vs mat4 speed



divide
09-19-2005, 04:53 AM
Hello

Is it faster to compute mat3 or mat4 operations in fragment programs ?
I'm asking so because I guess GPU is optimized for mat4 operations rather than mat3..

Thanks

Relic
09-19-2005, 05:17 AM
mat4 * vec4 takes one instruction more than mat3 * vec3, if that answers your question.

divide
09-19-2005, 05:40 AM
Ok thanks, so if I can I should rather use mat3 operations.

divide
09-19-2005, 11:00 AM
Seems that Mat3*Mat3 operations are faster than
3 Mat3*Vec3 operations, interesting !

CobraMantis
11-20-2005, 02:37 PM
How can that be?!