fix(editor): add filtered-out instance diagnostic in M2 render path

This commit is contained in:
Kelsi 2026-05-06 00:38:41 -07:00
parent b1162a2ac5
commit a6d6e0168a

View file

@ -1010,7 +1010,13 @@ void M2Renderer::render(VkCommandBuffer cmd, VkDescriptorSet perFrameSet, const
pending.push_back({entry.index, instanceFadeAlpha, needsBones, targetLOD});
}
if (pending.empty()) { visStart = groupEnd; continue; }
if (pending.empty()) {
if (forceNoCull_) {
LOG_WARNING("M2 render: model '", model.name, "' all ",
(groupEnd - visStart), " instances filtered out (bones?)");
}
visStart = groupEnd; continue;
}
// Sort by targetLOD so each sub-group occupies a contiguous SSBO range
std::sort(pending.begin(), pending.end(),