diff --git a/src/render/triangle.c b/src/render/triangle.c index 94bd5d7..016006e 100644 --- a/src/render/triangle.c +++ b/src/render/triangle.c @@ -8,13 +8,13 @@ #include #include -static uint32_t frame_interval_min; -static uint32_t frame_interval_max; void render_update(const uint32_t libprof_channel) { //dupdate(); - +#ifdef USE_LIBPROF + static uint32_t frame_interval_min=1000000; + static uint32_t frame_interval_max=1; // gestion du temps avec libprof if (prof_elapsed) { @@ -33,7 +33,7 @@ void render_update(const uint32_t libprof_channel) //dupdate(); prof_clear(libprof_channel); prof_enter(libprof_channel); - +#endif render_zbuffer_clear(); ///render_set(dh, dv, roulis, camera);