Log In  

I'm tying to build GOL on PICO-8, but the per-pixel manipulation is just too slow. Anything more than about 48x48 is unacceptably slow.
Initially I was reading/writing into temporary tables but that was really slow. This approach keeps all the state on the screen and in a sprite so there's about a quarter of the work from the table approach, but it's still slow.

I've started another experiment with peek4/poke4 but the coordinate wrapping is a total pain.

Cart #the_slow_life-0 | 2021-10-13 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

P#98583 2021-10-13 15:48

1

Check out rilden's Game of Life implementation for a very fast implementation. By using bitwise operations, 32 cells can be updated at once. With that, 390 FPS is possible for a 128x128 grid.

P#98790 2021-10-17 15:34

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-29 14:37:38 | 0.010s | Q:16