Wrote an example for Compute that runs Conway's Game of Life and encodes it to video…
Here’s the Swift code: https://github.com/schwa/Compute/blob/main/Sources/Examples/GameOfLife.swift
And the Metal (not optimised): https://github.com/schwa/Compute/blob/main/Sources/Examples/GameOfLife.metal
It's able to generate 4K frames at several hundred fps. (The H264 encoding is much slower.