当前位置:网站首页>Reflection on the performance of some OpenGL operations in the past

Reflection on the performance of some OpenGL operations in the past

2022-04-23 19:13:00 cjzcjl

When I did vertex transformation before , It's using CPU After matrix operation ( Object transformation matrix * Camera matrix * Projection matrix ):

Then send the total transformation matrix to the vertex renderer , The actual vertex of an object times it , You get the final vertex . Then give it to gl_Position Just place the corresponding vertices :

But today I see LearnOpenGL CN How to deal with , I think it's better to make full use of GPU Performance of :

The whole matrix multiplication operation is completely completed in the top renderer , Can be more fully utilized GPU Characteristics of . 

版权声明
本文为[cjzcjl]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210600587845.html