diff options
| author | degasus <wickmarkus@web.de> | 2014-05-19 18:31:38 +0200 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2015-01-11 22:23:35 +0100 |
| commit | 1c98a43203263b73da32c19085492c94214a56cb (patch) | |
| tree | d338755794ce8500a1abeb213cc52bbebbfda042 /Source/Core/VideoCommon/TextureCacheBase.h | |
| parent | 6ba613fbd3e7ecca0357adaab2e7fac422480a54 (diff) | |
TexCache: clean up frameCount handling
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.h')
| -rw-r--r-- | Source/Core/VideoCommon/TextureCacheBase.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.h b/Source/Core/VideoCommon/TextureCacheBase.h index 1fbcd49356..ae5e3be1ea 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.h +++ b/Source/Core/VideoCommon/TextureCacheBase.h @@ -87,7 +87,10 @@ public: virtual ~TextureCache(); // needs virtual for DX11 dtor static void OnConfigChanged(VideoConfig& config); - static void Cleanup(); + + // Removes textures which aren't used for more than TEXTURE_KILL_THRESHOLD frames, + // frameCount is the current frame number. + static void Cleanup(int frameCount); static void Invalidate(); static void InvalidateRange(u32 start_address, u32 size); |
