From 09cd56280cd591eeba8e9dcc6146386a04c1b722 Mon Sep 17 00:00:00 2001 From: curt Date: Wed, 6 May 1998 03:14:30 +0000 Subject: [PATCH] Added a shared frame rate counter. --- general.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/general.h b/general.h index bed41a4da..f8fbd9a22 100644 --- a/general.h +++ b/general.h @@ -30,10 +30,17 @@ #define _GENERAL_H +#define FG_FRAME_RATE_HISTORY 20 + + /* the general house keeping structure definition */ typedef struct { /* The flight gear "root" directory */ char *root_dir; + + /* Last frame rate measurement */ + double frame_rate; + double frames[FG_FRAME_RATE_HISTORY]; } fgGENERAL; /* general contains all the general house keeping parameters. */ @@ -43,9 +50,12 @@ extern fgGENERAL general; /* $Log$ -/* Revision 1.3 1998/03/14 00:27:58 curt -/* Promoted fgGENERAL to a "type" of struct. +/* Revision 1.4 1998/05/06 03:14:30 curt +/* Added a shared frame rate counter. /* + * Revision 1.3 1998/03/14 00:27:58 curt + * Promoted fgGENERAL to a "type" of struct. + * * Revision 1.2 1998/01/22 02:59:35 curt * Changed #ifdef FILE_H to #ifdef _FILE_H *