diff --git a/src/base.h b/src/base.h index 653ebc3..e5dd3e4 100644 --- a/src/base.h +++ b/src/base.h @@ -30,17 +30,17 @@ typedef double f64; #define SAFE_SUB(A, B) ((A) < (B) ? 0 : (A) - (B)) // GUI stuff -#define WIDTH 800 -#define HEIGHT 800 +#define WIDTH 1024 +#define HEIGHT 1024 // Simulation constants -#define SIZEOF_PROGRAM_POW_2 8 +#define SIZEOF_PROGRAM_POW_2 4 #define SIZEOF_PROGRAM (1 << SIZEOF_PROGRAM_POW_2) -#define NUM_PROGRAMS_POW_2 8 +#define NUM_PROGRAMS_POW_2 10 #define NUM_PROGRAMS (1 << NUM_PROGRAMS_POW_2) -#define MUTATION_CHANCE 10000 -#define MUTATION_OFFSET 3 +#define MUTATION_CHANCE 5000 +#define MUTATION_OFFSET 10 #endif diff --git a/src/main.c b/src/main.c index 82c4f1f..0f192eb 100644 --- a/src/main.c +++ b/src/main.c @@ -90,7 +90,6 @@ int main(void) BeginDrawing(); ClearBackground(BLACK); simulation_draw(&sim); - DrawFPS(0, 0); EndDrawing(); } state_iterator.done = true; diff --git a/src/simulation.c b/src/simulation.c index cb28fa0..2759802 100644 --- a/src/simulation.c +++ b/src/simulation.c @@ -33,6 +33,8 @@ void simulation_mutate(simulation_t *sim) sim->memory[i] += (rand() % MUTATION_OFFSET) - (MUTATION_OFFSET / 2); } } +#else + (void)sim; #endif }