Explorar el Código

move average_frame_rate_interval to putil

David Rose hace 20 años
padre
commit
1ec9170793

+ 0 - 3
panda/src/express/config_express.cxx

@@ -58,9 +58,6 @@ ConfigVariableBool keep_temporary_files
           "default) to delete these.  Mainly useful for debugging "
           "when the process goes wrong."));
 
-ConfigVariableDouble average_frame_rate_interval
-("average-frame-rate-interval", 1.0);
-
 ConfigVariableString encryption_algorithm
 ("encryption-algorithm", "bf-cbc",
  PRC_DESC("This defines the OpenSSL encryption algorithm which is used to "

+ 0 - 1
panda/src/express/config_express.h

@@ -64,7 +64,6 @@ extern ConfigVariableInt patchfile_buffer_size;
 extern ConfigVariableInt patchfile_zone_size;
 
 extern ConfigVariableBool keep_temporary_files;
-extern ConfigVariableDouble average_frame_rate_interval;
 
 extern ConfigVariableString encryption_algorithm;
 extern ConfigVariableInt encryption_key_length;

+ 3 - 0
panda/src/putil/config_util.cxx

@@ -142,3 +142,6 @@ ConfigVariableDouble sleep_precision
           "return precisely.  That is, if we use select() to request a "
           "timeout of 1.0 seconds, we can expect to actually sleep for "
           "somewhere between 1.0 and 1.0 + sleep-precision seconds."));
+
+ConfigVariableDouble average_frame_rate_interval
+("average-frame-rate-interval", 1.0);

+ 1 - 0
panda/src/putil/config_util.h

@@ -58,5 +58,6 @@ extern ConfigVariableDouble clock_frame_rate;
 extern ConfigVariableDouble clock_degrade_factor;
 extern ConfigVariableDouble max_dt;
 extern ConfigVariableDouble sleep_precision;
+extern ConfigVariableDouble average_frame_rate_interval;
 
 #endif /* __CONFIG_UTIL_H__ */