Webgl performance | Sololearn: Learn to code for FREE!

+1

Webgl performance

Is it better to have 4 vec4 attributes or 1 matrix attribute when dealing with performance issues?

5/24/2022 3:17:44 AM

ITDW

1 Answer

New Answer

+1

Hello, Try it for yourself! Put this code at the level of the code you want to test: window.PerformanceTestStart = performance.now(); And this one at the end: console.log(`Performance Test: ${performance.now() - PerformanceTestStart} ms`); It gives you the execution time in milliseconds.