Video Common: Avoid 'presenting' duplicate frames by detecting when swap

hasn't changed since the last frame
This commit is contained in:
iwubcode committed 2017-11-17 22:11:31 -06:00
1 parent c58010404d
commit e6d85b0915
4 files changed
+6 -3

No files matched your search

@@ -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;
}