]> git.mxchange.org Git - flightgear.git/commitdiff
Added a shared frame rate counter.
authorcurt <curt>
Wed, 6 May 1998 03:14:30 +0000 (03:14 +0000)
committercurt <curt>
Wed, 6 May 1998 03:14:30 +0000 (03:14 +0000)
general.h

index bed41a4da472b33e717a573a4243674e3b52cbac..f8fbd9a222dc9a740f221688ab30440552074d76 100644 (file)
--- a/general.h
+++ b/general.h
 #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
  *