diff options
| author | esquizo <esquizo+noreply@esquizo.net> | 2026-06-03 16:10:57 -0300 |
|---|---|---|
| committer | esquizo <esquizo+noreply@esquizo.net> | 2026-06-03 16:10:57 -0300 |
| commit | 83b1c06b186614d1bf2171feb46754bd8a8e6dfa (patch) | |
| tree | b8da3f436cba5736d481690935135fe5c6b3badc /libphysics/test/perf.c | |
| parent | 005f0a3185eb8085f6e0de11e3cfd0a3d9167719 (diff) | |
libphysics removido (ideia jogada fora)
Diffstat (limited to 'libphysics/test/perf.c')
| -rw-r--r-- | libphysics/test/perf.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/libphysics/test/perf.c b/libphysics/test/perf.c deleted file mode 100644 index 7e2dd51..0000000 --- a/libphysics/test/perf.c +++ /dev/null @@ -1,35 +0,0 @@ -#include <stdio.h> -#include <stdlib.h> -#include <physics.h> -#include <assert.h> - -#define SBODY 8192 -#define FLOAT_RAND (2 * (rand() / (float)RAND_MAX) - 1) - -int -main() -{ - for(int i = 0; i < SBODY; i++) { - BodyID b = phxnew(BTYPE_AABB); - assert(b != -1); - - phxsetpos(b, rand() % 800, rand() % 600); - phxsetsize(b, 5.0, 5.0); - phxapplyaccel(b, (float[]){ 50000 * FLOAT_RAND, 50000 * FLOAT_RAND }); - } - - phxsetmap(8, 8, (int[]) { - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 1, 0, 0, 0, 1, 0, 0, - 0, 1, 1, 0, 0, 1, 1, 0, - 0, 1, 1, 0, 0, 1, 1, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 1, 1, 0, 0, 1, 1, 0, - 0, 1, 1, 0, 0, 1, 1, 0, - 0, 0, 1, 0, 0, 0, 1, 0, - }); - - phxtick(10.0); - - return 0; -} |
