[Vulkan] Scavenge Profiling

This commit is contained in:
DrChat 2018-03-02 21:42:49 -06:00
parent 894bbf9e26
commit 2e3115660f
2 changed files with 4 additions and 0 deletions

View File

@ -754,6 +754,8 @@ void BufferCache::InvalidateCache() { transient_cache_.clear(); }
void BufferCache::ClearCache() { transient_cache_.clear(); }
void BufferCache::Scavenge() {
SCOPE_profile_cpu_f("gpu");
transient_cache_.clear();
transient_buffer_->Scavenge();

View File

@ -1512,6 +1512,8 @@ void TextureCache::ClearCache() {
}
void TextureCache::Scavenge() {
SCOPE_profile_cpu_f("gpu");
// Close any open descriptor pool batches
if (descriptor_pool_->has_open_batch()) {
descriptor_pool_->EndBatch();