+ 1
Webgl performance
Is it better to have 4 vec4 attributes or 1 matrix attribute when dealing with performance issues?
1 Antwort
+ 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.