Тестирование производительности: версоры + матрица + поворот
This commit is contained in:
parent
5d4472150b
commit
a30629df67
3 changed files with 78 additions and 4 deletions
|
|
@ -9,7 +9,46 @@
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#endif // _WINDOWS_
|
#endif // _WINDOWS_
|
||||||
|
|
||||||
BgFP32Versor * allocate_versors(const unsigned int amount)
|
BgFP32Vector3* allocate_vectors3(const unsigned int amount)
|
||||||
|
{
|
||||||
|
return calloc(amount, sizeof(BgFP32Vector3));
|
||||||
|
}
|
||||||
|
|
||||||
|
BgFP32Vector3* make_zero_vectors3(const unsigned int amount)
|
||||||
|
{
|
||||||
|
BgFP32Vector3* list = allocate_vectors3(amount);
|
||||||
|
|
||||||
|
if (list == 0) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (unsigned int i = 0; i < amount; i++) {
|
||||||