Closed zhenqinshang closed 6 years ago
for (uint32t qi = 0; qi != qprops.size(); ++qi) { auto &qprop = qprops[qi]; VkBool32 presentSupport = false; if (pd.getSurfaceSupportKHR(qi, surface)) { presentQueueFamily_ = qi; found = true; break;//here add break } }
It could indeed. I think the logic used to be more complex which precluded the break. It would only save a microsecond or so from startup time. I'll look at this.
Thanks. Closed.
for (uint32t qi = 0; qi != qprops.size(); ++qi) { auto &qprop = qprops[qi]; VkBool32 presentSupport = false; if (pd.getSurfaceSupportKHR(qi, surface)) { presentQueueFamily_ = qi; found = true; break;//here add break } }