Commit e4f5314a authored by Florian Oetke's avatar Florian Oetke

removed wait_idle in renderer

parent c63bd245
Pipeline #3378 passed with stage
in 13 minutes and 49 seconds
......@@ -515,7 +515,7 @@ namespace mirrage::graphic {
sc_info.setImageUsage(vk::ImageUsageFlagBits::eColorAttachment
| vk::ImageUsageFlagBits::eTransferDst);
sc_info.setImageArrayLayers(1);
sc_info.setMinImageCount(std::max(3u, capabilities.minImageCount));
sc_info.setMinImageCount(std::max(2u, capabilities.minImageCount));
if(capabilities.maxImageCount > 0 && capabilities.maxImageCount < sc_info.minImageCount) {
sc_info.setMinImageCount(capabilities.maxImageCount);
}
......
......@@ -216,8 +216,6 @@ namespace mirrage::renderer {
return;
}
_renderer.device().wait_idle();
// point light
if(_point_light_mesh.ready()) {
auto first_point_light = true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment