mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
add pstats-average-time
This commit is contained in:
parent
169d882035
commit
f84da13675
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
#include "config_pstats.h"
|
#include "config_pstats.h"
|
||||||
|
|
||||||
#include <dconfig.h>
|
#include "dconfig.h"
|
||||||
|
|
||||||
ConfigureDef(config_pstats);
|
ConfigureDef(config_pstats);
|
||||||
NotifyCategoryDef(pstats, "");
|
NotifyCategoryDef(pstats, "");
|
||||||
@ -43,6 +43,7 @@ const float pstats_target_frame_rate = config_pstats.GetFloat("pstats-target-fra
|
|||||||
// not the client.
|
// not the client.
|
||||||
const bool pstats_scroll_mode = config_pstats.GetBool("pstats-scroll-mode", true);
|
const bool pstats_scroll_mode = config_pstats.GetBool("pstats-scroll-mode", true);
|
||||||
const float pstats_history = config_pstats.GetFloat("pstats-history", 60.0);
|
const float pstats_history = config_pstats.GetFloat("pstats-history", 60.0);
|
||||||
|
const float pstats_average_time = config_pstats.GetFloat("pstats-average-time", 3.0);
|
||||||
const bool pstats_threaded_write = config_pstats.GetBool("pstats-threaded-write", false);
|
const bool pstats_threaded_write = config_pstats.GetBool("pstats-threaded-write", false);
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
@ -21,8 +21,8 @@
|
|||||||
|
|
||||||
#include "pandabase.h"
|
#include "pandabase.h"
|
||||||
|
|
||||||
#include <notifyCategoryProxy.h>
|
#include "notifyCategoryProxy.h"
|
||||||
#include <dconfig.h>
|
#include "dconfig.h"
|
||||||
|
|
||||||
// Configure variables for pstats package.
|
// Configure variables for pstats package.
|
||||||
|
|
||||||
@ -37,6 +37,7 @@ extern EXPCL_PANDA const float pstats_target_frame_rate;
|
|||||||
|
|
||||||
extern EXPCL_PANDA const bool pstats_scroll_mode;
|
extern EXPCL_PANDA const bool pstats_scroll_mode;
|
||||||
extern EXPCL_PANDA const float pstats_history;
|
extern EXPCL_PANDA const float pstats_history;
|
||||||
|
extern EXPCL_PANDA const float pstats_average_time;
|
||||||
|
|
||||||
extern EXPCL_PANDA const bool pstats_threaded_write;
|
extern EXPCL_PANDA const bool pstats_threaded_write;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user