Compare commits

...

2 Commits

Author SHA1 Message Date
le vieux
e17232f29c no more profiling compile 2020-11-25 14:38:39 +01:00
le vieux
532bf5f0fc chasse au bug 2020-11-25 12:20:26 +01:00
5 changed files with 12 additions and 8 deletions

View File

@ -3,7 +3,7 @@
# et de tout le crap... # et de tout le crap...
# #
COPT = -g -no-pie -Wall -DDEBUG_LEVEL=0 -Werror=parentheses COPT = -g -fpic -no-pie -Wall -DDEBUG_LEVEL=0 -Werror=parentheses
LIBS = ../libfloatimg.a -lpnglite -lm LIBS = ../libfloatimg.a -lpnglite -lm
OBJS = fonctions.o sfx.o crapulator.o glitches.o metriques.o OBJS = fonctions.o sfx.o crapulator.o glitches.o metriques.o

View File

@ -5,7 +5,6 @@
/* /*
* some constants for effect numbers */ * some constants for effect numbers */
/* /*
* the main function */ * the main function */

View File

@ -14,8 +14,8 @@
int verbosity; int verbosity;
#define PNG "out.png" #define PNG "out.png"
#define W 800 #define W 512
#define H 600 #define H 512
#define LMAX 233.333 #define LMAX 233.333
#define TIMER 1 #define TIMER 1
@ -26,7 +26,8 @@ FloatImg image;
char buff[1000]; char buff[1000];
double debut, fin; double debut, fin;
float omega; float omega;
verbosity = 1;
verbosity = 2;
fimg_print_version(1); fimg_print_version(1);
@ -36,10 +37,12 @@ if (foo) {
exit(1); exit(1);
} }
fimg_printhead(&image);
srand(getpid()); srand(getpid());
debut = fimg_timer_set(TIMER); debut = fimg_timer_set(TIMER);
for (iter=0; iter<72; iter++) { for (iter=0; iter<127; iter++) {
fimg_vdeg_a(&image, LMAX); fimg_vdeg_a(&image, LMAX);
@ -62,6 +65,8 @@ for (iter=0; iter<72; iter++) {
fin = fimg_timer_set(TIMER); fin = fimg_timer_set(TIMER);
fprintf(stderr, "elapsed %f\n", fin-debut); fprintf(stderr, "elapsed %f\n", fin-debut);
fimg_destroy(&image);
return 0; return 0;
} }

View File

@ -3,7 +3,7 @@
* ugly code from tTh * ugly code from tTh
*/ */
#define FIMG_VERSION 113 #define FIMG_VERSION 114
/* /*
* in memory descriptor * in memory descriptor

View File

@ -2,7 +2,7 @@
# building the base library # building the base library
# #
COPT = -Wall -fpic -g -pg -no-pie -DDEBUG_LEVEL=0 COPT = -Wall -fpic -g -no-pie -DDEBUG_LEVEL=0
OBJS = fimg-core.o fimg-pnm.o fimg-file.o fimg-math.o \ OBJS = fimg-core.o fimg-pnm.o fimg-file.o fimg-math.o \
fimg-timers.o operators.o fimg-2gray.o \ fimg-timers.o operators.o fimg-2gray.o \