KRMeshManager::bindVBO now swaps handles immediately for anything not loaded on the streamer thread.

This commit is contained in:
2022-07-28 23:40:09 -07:00
parent 33f5292c5e
commit c02ad5c3e7

View File

@@ -331,7 +331,6 @@ void KRMeshManager::bindVBO(VkCommandBuffer& commandBuffer, KRDataBlock &data, K
#endif
);
vbo_data->load(commandBuffer);
vbo_data->_swapHandles();
bindVBO(commandBuffer, vbo_data, lodCoverage);
}
@@ -619,7 +618,7 @@ void KRMeshManager::KRVBOData::load(VkCommandBuffer& commandBuffer)
m_manager->m_vboMemUsed += getSize();
m_manager->m_memoryTransferredThisFrame += getSize();
if(m_type == CONSTANT) {
if(m_type != STREAMING) {
_swapHandles();
}
}