Skip to content

Commit

Permalink
Rename charrain to fakesteak
Browse files Browse the repository at this point in the history
  • Loading branch information
domsson committed Nov 14, 2020
1 parent d99e19d commit 6b90f1e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# charrain
# fakesteak

![charrain](example2.png)
![fakesteak](example2.png)

This is my personal implementation of a green character rain screen as seen in "The Matrix".

Expand All @@ -27,19 +27,19 @@ You can just run the included `build` script. After that, you should be able to

chmod +x ./build
./build
chmod +x ./bin/charrain
./bin/charrain
chmod +x ./bin/fakesteak
./bin/fakesteak

## Performance

I've compared CPU and RAM usage against that of [`cmatrix`](https://github.com/abishekvashok/cmatrix), [`tmatrix`](https://github.com/M4444/TMatrix) and [`unimatrix`](https://github.com/will8211/unimatrix) a little, all of which offer better portability and more featuers. CPU usage is from `top`, memory via `smem`, looking at PSS. I've ran all programs in urxvt, with settings that give somewhat similar visual results, in a full screen terminal (1920x1080 px). Here are the approximate findings:

| | CPU | RAM | disk | Language | ran as |
|----------------------|-------|--------|------|----------|----------------------------|
| charrain v0.2.0 | ~6 % | ~170 K | 19 K | C | charrain -d33 |
| fakesteak v0.2.0 | ~6 % | ~170 K | 19 K | C | fakesteak -d33 |
| cmatrix v2.0 | ~7 % | ~900 K | 22 K | C | cmatrix -b -u10 |
| tmatrix v1.3 | ~8 % | ~2.1 M | 87 K | C++ | tmatrix --gap=30,70 |
| unimatrix 2018/01/09 | ~11 % | ~9.4 M | 26 K | Python | unimatrix -b -s=90 -l=o -f |

Again, when comparing these numbers, note `charrain`s shortcomings in features and portability compared to the other implementations.
Again, when comparing these numbers, note `fakesteak`s shortcomings in features and portability compared to the other implementations.

4 changes: 2 additions & 2 deletions build
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash
#gcc -Wall -g -o bin/charrain src/charrain.c -lm
gcc -Wall -O3 -o bin/charrain src/charrain.c -lm
#gcc -Wall -g -o bin/fakesteak src/fakesteak.c -lm
gcc -Wall -O3 -o bin/fakesteak src/fakesteak.c -lm
File renamed without changes.

0 comments on commit 6b90f1e

Please sign in to comment.