From e6d85b0915681a3f8162d45468f2c488d6df8114 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Sun, 20 Aug 2017 14:24:37 -0500 Subject: Video Common: Avoid 'presenting' duplicate frames by detecting when swap hasn't changed since the last frame --- Source/Core/VideoCommon/TextureCacheBase.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp') diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index c6df251723..89fbb6ac59 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/TextureCacheBase.cpp @@ -1611,6 +1611,7 @@ TextureCacheBase::TCacheEntry* TextureCacheBase::AllocateCacheEntry(const Textur } TCacheEntry* cacheEntry = new TCacheEntry(std::move(texture)); cacheEntry->textures_by_hash_iter = textures_by_hash.end(); + cacheEntry->id = last_entry_id++; return cacheEntry; } -- cgit v1.2.3