| ▲ | zimpenfish 4 hours ago | |
> I did a wfc implementation a while back and moved to bitfields after a while.. the speedup was incredible. Yeah, my WFC bot (which happens to generate Carcassonne maps in an amusing coincidence) eventually ended up using https://github.com/bits-and-blooms/bitset which improved things hugely. > It became faster to just recompute a chunk from scratch Kinda what mine does - every now and again[0] it stacks the current state and if it gets stuck, just pops the last one and continues from there. [0] Just checked and it's every `tileCount / 20` iterations, hilariously in a variable named `tenper`. I hate past me. | ||