commit e50382f4eda71fc53ea5f8feb96f6767574e5bf1
parent afb596052fb0f586137ccbfd529d4e135aece909
Author: Robert Russell <robert@rr3.xyz>
Date: Mon, 26 Aug 2024 19:23:29 -0700
Update README
Diffstat:
| M | README | | | 20 | +++++++++++++------- |
1 file changed, 13 insertions(+), 7 deletions(-)
diff --git a/README b/README
@@ -10,13 +10,19 @@ Example:
| sp2ff # Convert to farbfeld by assigning colors to sand amounts
| ff2png > out.png # Convert to PNG for real use
-Additional notes:
- - There is also spstabilize8, which topples sand into the surrounding 8
- neighbours instead of the adjacent 4 with spstabilize4.
- - sp2ff accepts arguments to control the output colours. See `sp2ff -h`.
- - There is also ff2sp, which converts a grayscale farbfeld image to a
- sandpile by placing a given amount of sand on each pixel that is whiter
- than a threshold (which is 0x8888 by default).
+There is also spstabilize8, which topples sand into the surrounding 8
+neighbours instead of the adjacent 4 with spstabilize4.
+
+sp2ff accepts arguments to control the output colours. See `sp2ff -h`.
+
+There is also ff2sp, which converts a grayscale farbfeld image to a sandpile by
+placing a given amount of sand on each pixel that is whiter than a threshold
+(which is 0x8888 by default).
+
+spstabilize{4,8} are implemented using AVX2 and are therefore reasonably fast,
+but they are still sluggish are enormous sandpiles (e.g., I created an
+animation of 600 frames of a 1080p video, and it took over an hour on an AMD
+5800X CPU), so I ought to make a GPU implementation.
[1] https://en.wikipedia.org/wiki/Abelian_sandpile_model
[2] https://tools.suckless.org/farbfeld