mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-16 23:17:29 +00:00
Use PAUSE in vk::query_pool_manager::get_query_result
This commit is contained in:
parent
262ff01619
commit
12e3c9e08b
@ -2,6 +2,7 @@
|
||||
#include "VKQueryPool.h"
|
||||
#include "VKRenderPass.h"
|
||||
#include "VKResourceManager.h"
|
||||
#include "util/asm.hpp"
|
||||
|
||||
namespace vk
|
||||
{
|
||||
@ -157,9 +158,16 @@ namespace vk
|
||||
{
|
||||
// Check for cached result
|
||||
auto& query_info = query_slot_status[index];
|
||||
while (!query_info.ready)
|
||||
|
||||
if (!query_info.ready)
|
||||
{
|
||||
poke_query(query_info, index, result_flags);
|
||||
|
||||
while (!query_info.ready)
|
||||
{
|
||||
utils::pause();
|
||||
poke_query(query_info, index, result_flags);
|
||||
}
|
||||
}
|
||||
|
||||
return query_info.data;
|
||||
|
Loading…
Reference in New Issue
Block a user