Commit 74a46b11 authored by Stephen D's avatar Stephen D
Browse files

Save every frame

parent b552156a
......@@ -411,7 +411,6 @@ int main(int argc, char **argv)
//Runs until CTRL+C
//TODO: CTRL+C should force autosave
bool justStarted = true;
while(1)
{
//iterate();
......@@ -420,24 +419,14 @@ int main(int argc, char **argv)
printf("Gentree finished\n");
//exit(1);
addToImage();
//gives the next frame some iterations to build up
//without justStarted, the loaded iteration is rerendered, but only from
//a single iteration, which stands out quite a bit.
if(justStarted)
saveImage(iteration);
if(iteration % a == 0)
{
justStarted = false;
}
else
{
if(iteration % 10 == 0)
{
saveImage(iteration / 10);
}
if(iteration % a == 0)
{
saveState(iteration);
}
saveState(iteration);
}
iteration++;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment