_ _
_ __ | |__ | | ___ __ _
| '_ \| '_ \| |/ _ \ / _` |
| |_) | | | | | (_) | (_| |
| .__/|_| |_|_|\___/ \__, |
|_| ...2017-02-18 |___/
I've been using jwildfire for a while, but I decided to go back and have a go
with my first strange-attractor love. It runs great in wine, and there's a Linux
command-line renderer for it, so I've setup my workflow such that I look for
interesting fractals in the GUI, save the file and a script automatically picks
it up, and if there are free CPU cores, it starts rendering it right away. This
way I can utilize CPU much better. Chaoscope still makes the sweetest solid IFS
renders I know of! :) I also made a script to batch process a list of files.
I wrote it for 8 cores.
csp-batch.sh:
#!/bin/bash
export LD_LIBRARY_PATH=../lib/
JOBS=$@
LIVE=()
for JOB in $JOBS
do
DST=${JOB::-7}.bmp
DST=`echo $DST | awk -F/ '{print $NF}'`
DST="imgs/$DST"
./csp -i "$JOB" -o "$DST" &> /dev/null &
ID=$!
echo "Render $JOB -> $DST ($ID)"
LIVE+=($ID)
NC=`ps aux | grep csp | wc -l`
while [ $NC -gt 6 ]
do
sleep 1
NC=`ps aux | grep csp | wc -l`
done
done
echo "All started, waiting for all to finish ..."
wait ${LIVE[@]}
Usage: ./csp-batch.sh /path/to/files/*.csproj