update for recommended logs

This commit is contained in:
2026-03-18 10:19:12 +00:00
parent bd2d51b57c
commit a2978d01e7
3 changed files with 8 additions and 7 deletions

View File

@@ -30,17 +30,17 @@ typedef double f64;
#define SAFE_SUB(A, B) ((A) < (B) ? 0 : (A) - (B)) #define SAFE_SUB(A, B) ((A) < (B) ? 0 : (A) - (B))
// GUI stuff // GUI stuff
#define WIDTH 800 #define WIDTH 1024
#define HEIGHT 800 #define HEIGHT 1024
// Simulation constants // Simulation constants
#define SIZEOF_PROGRAM_POW_2 8 #define SIZEOF_PROGRAM_POW_2 4
#define SIZEOF_PROGRAM (1 << SIZEOF_PROGRAM_POW_2) #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 NUM_PROGRAMS (1 << NUM_PROGRAMS_POW_2)
#define MUTATION_CHANCE 10000 #define MUTATION_CHANCE 5000
#define MUTATION_OFFSET 3 #define MUTATION_OFFSET 10
#endif #endif

View File

@@ -90,7 +90,6 @@ int main(void)
BeginDrawing(); BeginDrawing();
ClearBackground(BLACK); ClearBackground(BLACK);
simulation_draw(&sim); simulation_draw(&sim);
DrawFPS(0, 0);
EndDrawing(); EndDrawing();
} }
state_iterator.done = true; state_iterator.done = true;

View File

@@ -33,6 +33,8 @@ void simulation_mutate(simulation_t *sim)
sim->memory[i] += (rand() % MUTATION_OFFSET) - (MUTATION_OFFSET / 2); sim->memory[i] += (rand() % MUTATION_OFFSET) - (MUTATION_OFFSET / 2);
} }
} }
#else
(void)sim;
#endif #endif
} }