request soon commit instead of committing directly

This commit is contained in:
Samuliak 2024-09-13 16:12:47 +02:00
parent 934b1f8b55
commit e89efed743
4 changed files with 17 additions and 8 deletions

View file

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