diff --git a/src/main.c b/src/main.c index 25575a1..aae3b30 100644 --- a/src/main.c +++ b/src/main.c @@ -16,7 +16,7 @@ #define HEIGHT (1200) #define SIM_WIDTH (800) #define SIM_HEIGHT (600) -#define N_SIMULATION (1000) +#define N_SIMULATION (100) const int FPS = 60; const int FRAME_DELAY = 1000 / FPS; @@ -116,7 +116,8 @@ int main(int argc, char* argv[]) { printf("Simulation with %d iteration, duration : %.6f s\n", N_SIMULATION, elapsed); } - + if (flags.multithread) + destroy_threads(threads, n_threads, ta); free_board(b); free(ta); free(threads);