diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2023-04-22 11:59:57 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2023-04-23 22:03:44 +0200 |
commit | 7e76c1642cb4dfde5bfc97600ca3df7dcbea01de (patch) | |
tree | 6d68c31d9588def484be15d84cb54bb2f72af4df /src/video_core/renderer_vulkan/vk_query_cache.cpp | |
parent | Fence Manager: implement async fence management in a sepparate thread. (diff) | |
download | yuzu-7e76c1642cb4dfde5bfc97600ca3df7dcbea01de.tar yuzu-7e76c1642cb4dfde5bfc97600ca3df7dcbea01de.tar.gz yuzu-7e76c1642cb4dfde5bfc97600ca3df7dcbea01de.tar.bz2 yuzu-7e76c1642cb4dfde5bfc97600ca3df7dcbea01de.tar.lz yuzu-7e76c1642cb4dfde5bfc97600ca3df7dcbea01de.tar.xz yuzu-7e76c1642cb4dfde5bfc97600ca3df7dcbea01de.tar.zst yuzu-7e76c1642cb4dfde5bfc97600ca3df7dcbea01de.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_query_cache.cpp')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_query_cache.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_query_cache.cpp b/src/video_core/renderer_vulkan/vk_query_cache.cpp index 929c8ece6..0701e572b 100644 --- a/src/video_core/renderer_vulkan/vk_query_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_query_cache.cpp @@ -98,8 +98,9 @@ HostCounter::HostCounter(QueryCache& cache_, std::shared_ptr<HostCounter> depend query{cache_.AllocateQuery(type_)}, tick{cache_.GetScheduler().CurrentTick()} { const vk::Device* logical = &cache.GetDevice().GetLogical(); cache.GetScheduler().Record([logical, query = query](vk::CommandBuffer cmdbuf) { + const bool use_precise = Settings::IsGPULevelHigh(); logical->ResetQueryPool(query.first, query.second, 1); - cmdbuf.BeginQuery(query.first, query.second, VK_QUERY_CONTROL_PRECISE_BIT); + cmdbuf.BeginQuery(query.first, query.second, use_precise ? VK_QUERY_CONTROL_PRECISE_BIT : 0); }); } |