Run it live at here.
This project was inspired by the js-snow project. One has always had the nostalgia of the little X11 program called Xsnow that came with typical Linux Desktops during 1990s. To fulfill the curiosity, we managed to find the aforementioned js-snow project which runs inside a browser and was written in pure JavaScript. Thus, one can imagine that the performance would not be at best, since the trajectory for each single piece of the snowflakes is calculated on the fly in real-time, and JavaScript is not a language designed particularly good for that.
Indeed, on a typical computer it only gets around 25fps while CPU usage is boosted to 75%. Our improvements over the project lie on two folds:
It can be seen that by fully taking advantage of CPU's processing power via using Wasm, we are able to greatly improve computation efficiency. We are also planning to release a version based on GPU accelerators such as WebGPU, using compute shaders for position calculations.
You can find it here.
Back to Home