Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2008-05-07 22:33:10 +0400
committerCampbell Barton <ideasman42@gmail.com>2008-05-07 22:33:10 +0400
commit5da47ddd02352a0860be5899c3d03734e44d0151 (patch)
tree6174add8ff4a2f16bb384f5324599926cbbe6115 /source/blender/src/drawview.c
parentad5579ec92796d31d06f2d5287f2356efadb1788 (diff)
fps timer was starting off at 0 fps
Diffstat (limited to 'source/blender/src/drawview.c')
-rw-r--r--source/blender/src/drawview.c4
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--) {