Style + some fix
This commit is contained in:
parent
e62e23d01c
commit
505a5dd323
3 changed files with 28 additions and 18 deletions
|
@ -1,17 +1,23 @@
|
|||
## Optimization
|
||||
|
||||
All feel good from the architecture point of vue.
|
||||
More precisely, the separation between rendering and world behavior is clear.
|
||||
But this is extremely slow now.
|
||||
Because we compute the Mandelbulb for each frame now.
|
||||
From the architecture stand point all is clear.
|
||||
If you read the code, you'll see I didn't made everything perfect, for example, I didn't coded nicely the lights.
|
||||
But I believe it is a good first step and it will be easy to go further.
|
||||
The separation between rendering and world behavior is clear.
|
||||
Unfortunately the program of the preceding session is extremely slow.
|
||||
We compute the Mandelbulb for each frame now.
|
||||
|
||||
Before we had
|
||||
|
||||
Constant Function -> Constant List of Triangles -> Display
|
||||
<code class="no-highlight">
|
||||
Constant Function -> Constant List of Triangles -> Display
|
||||
</code>
|
||||
|
||||
Now we have
|
||||
|
||||
World -> Function -> List of Objects -> Atoms -> Display
|
||||
<code class="no-highlight">
|
||||
World -> Function -> List of Objects -> Atoms -> Display
|
||||
</code>
|
||||
|
||||
And the World state could change.
|
||||
Then it is no more straightforward for the compiler to understand
|
||||
|
|
12
prev
12
prev
|
@ -16,7 +16,11 @@ print -- "Create article"
|
|||
|
||||
print -- "Copy source codes"
|
||||
ycp() {
|
||||
print -- $*
|
||||
local precedent=""
|
||||
for e in $*;do
|
||||
[[ $precedent != "" ]] && print -- "\t$precedent"
|
||||
precedent=$e
|
||||
done
|
||||
cp $*
|
||||
}
|
||||
latestArticleDir=$(ls -l $webroot/latest.ymd | perl -pi -e 's#.*/##; s#.md$##')
|
||||
|
@ -25,10 +29,10 @@ for langue in en fr; do
|
|||
[[ ! -d $dst ]] && mkdir -p $dst
|
||||
ycp *.lhs(N) $dst
|
||||
for dir in ??_*(N/); do
|
||||
mkdir $dst/$dir
|
||||
ycp $dir/*.{lhs,hs} $dst/$dir
|
||||
[[ ! -d $dst/$dir ]] && mkdir $dst/$dir
|
||||
ycp $dir/*.{lhs,hs}(.N) $dst/$dir
|
||||
done
|
||||
done
|
||||
|
||||
print -- "\nRecompile"
|
||||
cd $webroot
|
||||
./tasks/recompile
|
||||
|
|
Loading…
Reference in a new issue