neighbour based algorithm for threads

It does seem to affect since sim falls into a "stable" configuration
where cells rarely change quite quickly.  I'm thinking of making a
better colouring algorithm to see if I can get better images.
This commit is contained in:
2026-03-10 22:50:38 +00:00
parent 0e1229569a
commit 0bba1894dc
4 changed files with 63 additions and 25 deletions

View File

@@ -12,12 +12,6 @@
#include <stdatomic.h>
#include <threads.h>
#define NUM_PROGRAMS_POW_2 10
#define NUM_PROGRAMS (1LU << NUM_PROGRAMS_POW_2)
#define SIMULATION_SIZE (SIZEOF_PROGRAM * NUM_PROGRAMS)
#define THREAD_POOL 8
struct ThreadState
{
u64 p1, p2;