Skip to content

Commit

Permalink
By default purge resources that haven't been used for 64 flushes
Browse files Browse the repository at this point in the history
  • Loading branch information
bsalomon authored and Commit bot committed Sep 29, 2015
1 parent e25eea4 commit 198a350
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/gpu/GrResourceCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ class GrResourceCache {
static const size_t kDefaultMaxSize = 96 * (1 << 20);
// Default number of flushes a budgeted resources can go unused in the cache before it is
// purged. Large values disable the feature (as the ring buffer of flush timestamps would be
// large). This is currently the default until we decide to enable this feature
// of the cache by default.
static const int kDefaultMaxUnusedFlushes = 1024;
// large).
static const int kDefaultMaxUnusedFlushes = 64;

/** Used to access functionality needed by GrGpuResource for lifetime management. */
class ResourceAccess;
Expand Down

0 comments on commit 198a350

Please sign in to comment.