mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-07 15:31:18 +12:00
request soon commit instead of committing directly
This commit is contained in:
parent
934b1f8b55
commit
e89efed743
4 changed files with 17 additions and 8 deletions
|
@ -14,6 +14,7 @@ bool LatteQueryObjectMtl::getResult(uint64& numSamplesPassed)
|
|||
return false;
|
||||
|
||||
numSamplesPassed = m_mtlr->GetOcclusionQueryResultsPtr()[m_queryIndex];
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -35,7 +36,6 @@ void LatteQueryObjectMtl::end()
|
|||
if (m_mtlr->IsCommandBufferActive())
|
||||
{
|
||||
m_commandBuffer = m_mtlr->GetCurrentCommandBuffer();
|
||||
// TODO: request soon submit instead?
|
||||
m_mtlr->CommitCommandBuffer();
|
||||
m_mtlr->RequestSoonCommit();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue