free
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
#define HEIGHT (1200)
|
#define HEIGHT (1200)
|
||||||
#define SIM_WIDTH (800)
|
#define SIM_WIDTH (800)
|
||||||
#define SIM_HEIGHT (600)
|
#define SIM_HEIGHT (600)
|
||||||
#define N_SIMULATION (1000)
|
#define N_SIMULATION (100)
|
||||||
|
|
||||||
const int FPS = 60;
|
const int FPS = 60;
|
||||||
const int FRAME_DELAY = 1000 / FPS;
|
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",
|
printf("Simulation with %d iteration, duration : %.6f s\n",
|
||||||
N_SIMULATION, elapsed);
|
N_SIMULATION, elapsed);
|
||||||
}
|
}
|
||||||
|
if (flags.multithread)
|
||||||
|
destroy_threads(threads, n_threads, ta);
|
||||||
free_board(b);
|
free_board(b);
|
||||||
free(ta);
|
free(ta);
|
||||||
free(threads);
|
free(threads);
|
||||||
|
|||||||
Reference in New Issue
Block a user