Rezmason / matrix

matrix (web-based green code rain, made with love)
https://rezmason.github.io/matrix
MIT License
3.29k stars 212 forks source link

Feature Request: 24 fps mode #30

Closed bioroid closed 1 year ago

bioroid commented 1 year ago

Would like a 24 fps mode to give it that cinematic feel

Rezmason commented 1 year ago

Hey which sprint does this go in, @bioroid ? 😆

image

image

Rezmason commented 1 year ago

Presto!

https://rezmason.github.io/matrix/?fps=24 https://rezmason.github.io/matrix/?fps=12 https://rezmason.github.io/matrix/?fps=1

There was a hidden, tricky aspect to this feature request, which is that the simulation should update at the usual rate while the graphics should update at the specified rate.

The simulation isn't very expensive, but it's important that it runs or the frame skip will affect the state of the cells in strange ways.