+ 1

Webgl performance

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

24th May 2022, 3:17 AM
ITDW
1 Respuesta
+ 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.
28th Jun 2022, 6:20 AM
Wixonic (contact: description)
Wixonic (contact: description) - avatar