diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-05-07 22:33:10 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-05-07 22:33:10 +0400 |
commit | 5da47ddd02352a0860be5899c3d03734e44d0151 (patch) | |
tree | 6174add8ff4a2f16bb384f5324599926cbbe6115 /source/blender | |
parent | ad5579ec92796d31d06f2d5287f2356efadb1788 (diff) |
fps timer was starting off at 0 fps
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/src/drawview.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/drawview.c b/source/blender/src/drawview.c index 1acb7c4373f..be009536022 100644 --- a/source/blender/src/drawview.c +++ b/source/blender/src/drawview.c @@ -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--) { |