mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
update unit tests
This commit is contained in:
parent
a5571bd49d
commit
818425707b
1 changed files with 4 additions and 4 deletions
|
@ -115,8 +115,8 @@ void GLMHelpersTests::testSimd() {
|
|||
|
||||
a1 = a * b;
|
||||
b1 = b * a;
|
||||
glm_mat4_mul((glm_vec4*)&a, (glm_vec4*)&b, (glm_vec4*)&a2);
|
||||
glm_mat4_mul((glm_vec4*)&b, (glm_vec4*)&a, (glm_vec4*)&b2);
|
||||
glm_mat4u_mul(a, b, a2);
|
||||
glm_mat4u_mul(b, a, b2);
|
||||
|
||||
|
||||
{
|
||||
|
@ -133,8 +133,8 @@ void GLMHelpersTests::testSimd() {
|
|||
QElapsedTimer timer;
|
||||
timer.start();
|
||||
for (size_t i = 0; i < LOOPS; ++i) {
|
||||
glm_mat4_mul((glm_vec4*)&a, (glm_vec4*)&b, (glm_vec4*)&a2);
|
||||
glm_mat4_mul((glm_vec4*)&b, (glm_vec4*)&a, (glm_vec4*)&b2);
|
||||
glm_mat4u_mul(a, b, a2);
|
||||
glm_mat4u_mul(b, a, b2);
|
||||
}
|
||||
qDebug() << "SIMD " << timer.elapsed();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue