# HG changeset patch # User John Tsiombikas # Date 1497492600 -10800 # Node ID d0297d001505350d307b6b6fc1a2ddcd9d7130f1 # Parent 8171de5a000b084e9ba7a40b64f8b3463429deb9 some command line options diff -r 8171de5a000b -r d0297d001505 Makefile --- a/Makefile Wed Jun 14 18:03:57 2017 +0300 +++ b/Makefile Thu Jun 15 05:10:00 2017 +0300 @@ -2,7 +2,7 @@ obj = $(src:.c=.o) bin = voxfract -CFLAGS = -pedantic -Wall -g +CFLAGS = -pedantic -Wall -g -O3 -ffast-math LDFLAGS = -lGL -lGLU -lglut -lmetasurf -lm $(bin): $(obj) diff -r 8171de5a000b -r d0297d001505 src/main.c --- a/src/main.c Wed Jun 14 18:03:57 2017 +0300 +++ b/src/main.c Thu Jun 15 05:10:00 2017 +0300 @@ -22,15 +22,15 @@ int julia(struct quat *qres, struct quat *qprime, struct quat *q, struct quat *seed, int max_iter); float julia_dist(struct quat *z, struct quat *seed, int max_iter); -void julia_grad(float *grad, float dist, struct quat *q, struct quat *seed, int max_iter); +void julia_grad(float *grad, struct quat *q, struct quat *seed, int max_iter); void show_waitscr(void); float cam_theta, cam_phi = 25, cam_dist = 5; -int grid_size = 350; +int grid_size = 300; float grid_scale = 1.7; struct quat seed = {0.4, 0.0, 0.0, -0.8}; -int max_iter = 9; +int max_iter = 10; struct metasurface *msurf; int dlist; @@ -38,6 +38,41 @@ int main(int argc, char **argv) { + int i; + + for(i=1; i