Newsgroups: comp.sources.misc From: hatch@math.berkeley.edu (Don Hatch) Subject: v30i078: life - fast pixel-level life for b&w Sun screen, Part01/01 Message-ID: <1992Jun21.041824.3808@sparky.imd.sterling.com> X-Md4-Signature: 9ce19ce6fec727dbfebadc6a2fcf9e8e Date: Sun, 21 Jun 1992 04:18:24 GMT Approved: kent@sparky.imd.sterling.com Submitted-by: hatch@math.berkeley.edu (Don Hatch) Posting-number: Volume 30, Issue 78 Archive-name: life/part01 Environment: SUNOS Conway's game of life on a torus, for a black&white Sun screen (/dev/bwtwo0). Uses a very clever method of calculating 32 positions at once. I don't know who invented it, but Lew Hitchner gave it as an assignment in his Computer Architecture course at UCSC. I optimized it as much as I could, so even I don't understand it any more. On a sparc (compiled with -O) it gives about 6.8 frames per second full screen, and proportionately faster on smaller regions. :================================ CUT HERE ====================================