diff --git a/Draw.c b/Draw.c index 92d2b14..2f121ce 100644 --- a/Draw.c +++ b/Draw.c @@ -34,6 +34,7 @@ SDL_Surface *_screen=NULL; int _width; int _height; long long _t_frame=17000; +long long min_t_frame=16000; ///////////////////////////// // Draw_Init @@ -173,6 +174,8 @@ void Draw_Loop(int (*proc)(),void (*draw)()){ time2=Time_GetTime(); t_frame+=time2-time; time=time2; + + // FIX: Limit if(t_frame>50000){ t_frame=50000; } @@ -191,9 +194,15 @@ void Draw_Loop(int (*proc)(),void (*draw)()){ } // Draw + time2=Time_GetTime(); draw(); + time2=Time_GetTime()-time2; + if(time2