14#ifndef GEOMCACHEMANAGER_H
15#define GEOMCACHEMANAGER_H
37class EXPCL_PANDA_GOBJ GeomCacheManager {
74 GeomCacheEntry *_list;
76 static GeomCacheManager *_global_ptr;
85 friend class GeomCacheEntry;
This object contains a single cache entry in the GeomCacheManager.
int get_max_size() const
Returns the maximum number of entries in the cache for storing pre- processed data for rendering vert...
void flush()
Immediately empties all elements in the cache.
void evict_old_entries()
Trims the cache size down to get_max_size() by evicting old cache entries as needed.
void set_max_size(int max_size) const
Specifies the maximum number of entries in the cache for storing pre- processed data for rendering ve...
int get_total_size() const
Returns the number of entries currently in the cache.
static void flush_level()
Flushes the PStatCollectors used during traversal.
static GeomCacheManager * get_global_ptr()
Returns the global cache manager pointer.
This is a standard, non-reentrant mutex, similar to the Mutex class.
A lightweight class that represents a single element that may be timed and/or counted via stats.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.