Christopher Lemmer Webber is a user on octodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
Christopher Lemmer Webber @cwebber

I got the Racket + Game of Life demo to work on a 50 x 50 grid at a framerate that was semi-tolerable, and by semi-tolerable I mean 10 FPS on this ancient machine. I guess that's 2500 sprites on a 1000 by 1000 canvas, and I'm redrawing the whole thing every time (but now onto the same bitmap). A 30 x 30 grid, on the other hand, is plenty fast.

The slow bit at this point is the blitting of each sprite onto the canvas.

· Web · 0 · 2

@technomancy Sure... I guess I should push this git repo live!

@cwebber I'm curious how a port to love2d would compare, and possibly how it would look in Urn

@technomancy Good point... I should upload it! Here it is: gitlab.com/dustyweb/racket-lif

Just check it out and run ./run-life.sh. All you need is Racket installed and it should chug along.

@technomancy Okay, and now you can set the grid size from the command line:

./run-life.sh 25 50