3 ms·
I think the ultimate in performance and parallelism would be to run it on a GPU. As long as you are able to define your algorithm in such a way that the new val
by Adverblessly 4y ago
I think the ultimate in performance and parallelism would be to run it on a GPU. As long as you are able to define your algorithm in such a way that the new value of each pixel can be calculated just from itself and its neighbours it will work very quickly.
For fun, I've written a Game Of Life implementation in GLSL and even though it is naively implemented it will run at thousands of iterations per second at 4K resolution on a 6 year old desktop gpu.
- Someone 4y agoA GPU more likely would give performance that’s independent of the pattern and that has constant stepping time, but given the existence of Hashlife (https://en.wikipedia.org/wiki/Hashlife https://en.wikipedia.org/wiki/Hashlife), I don’t think it’s a given that a GPU would provide the ultimate in performance.