1
0
Disbranĉigi 0

Optimization-- 15sec render instead of 23sec

This commit is contained in:
Jaidyn Ann 2017-03-28 05:47:39 -05:00
parent 8c2e679bee
commit 8f9ea166bc

View File

@ -17,24 +17,17 @@ do
then then
point_data=$(sh lib/json.sh $file | grep board/pieces/${widthi},${heighti}/ | grep =) point_data=$(sh lib/json.sh $file | grep board/pieces/${widthi},${heighti}/ | grep =)
point_data=$(echo $point_data | sed 's/ = /=/g' | sed 's/ /^/g') point_data=$(echo $point_data | sed 's/ = /=/g' | sed 's/ /^/g')
echo $point_data string_one=$(echo $point_data | awk -F^ '{print $1}')
string_one=$(echo $point_data | sed 's/.*^//') string_two=$(echo $point_data | awk -F^ '{print $2}')
echo $string_one if echo $string_one | grep team= > /dev/null
string_two=$(echo $point_data | sed 's/^.*//')
echo $string_two
if echo $string_one | grep team=
then then
team=$string_one team=$( echo $string_one | sed 's/.*=//')
piece=$string_two piece=$(echo $string_two | sed 's/.*=//')
elif echo $string_one | grep piece= elif echo $string_one | grep piece= > /dev/null
then then
piece=$string_one piece=$(echo $string_one | sed 's/.*=//')
team=$string_two team=$(echo $string_two | sed 's/.*=//')
fi fi
echo $string_one
echo $string_two
echo $piece
echo $team
text=$(sh lib/json.sh -s ${team}/pieces/${piece}/text $file) text=$(sh lib/json.sh -s ${team}/pieces/${piece}/text $file)
else else
text=" " text=" "