fps timer was starting off at 0 fps
authorCampbell Barton <ideasman42@gmail.com>
Wed, 7 May 2008 18:33:10 +0000 (18:33 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 7 May 2008 18:33:10 +0000 (18:33 +0000)
source/blender/src/drawview.c

index 1acb7c4373f5173ce4a976bb8112429a942ddd76..be0095360221f96ee7a2882c6ad1a73a98175dcf 100644 (file)
@@ -3421,7 +3421,7 @@ static void draw_viewport_fps(ScrArea *sa)
        char printable[16];
        int i, tot;
        
-       if (lredrawtime == redrawtime)
+       if (!lredrawtime || !redrawtime)
                return;
        
        printable[0] = '\0';
@@ -3569,7 +3569,7 @@ void inner_play_anim_loop(int init, int mode)
                last_cfra = -1;
                cached = cached_dynamics(PSFRA,PEFRA);
                
-               redrawtime = 1.0/FPS;
+               redrawtime = 0.0;
                
                redrawtime_index = REDRAW_FRAME_AVERAGE;
                while(redrawtime_index--) {