29 void reset(
double now);
30 void write(std::ostream &out,
const char *name)
const;
31 INLINE
void maybe_report(
const char *name);
33 INLINE
void inc_hits();
34 INLINE
void inc_misses();
35 INLINE
void inc_adds(
bool is_new);
36 INLINE
void inc_dels();
37 INLINE
void add_total_size(
int count);
38 INLINE
void add_num_states(
int count);
43 int _cache_misses = 0;
45 int _cache_new_adds = 0;
47 int _total_cache_size = 0;
49 double _last_reset = 0.0;
51 bool _cache_report =
false;
52 double _cache_report_interval = 0.0;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is used to track the utilization of the TransformState and RenderState caches,...