mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-10 02:53:51 +00:00
fix(editor): add filtered-out instance diagnostic in M2 render path
This commit is contained in:
parent
b1162a2ac5
commit
a6d6e0168a
1 changed files with 7 additions and 1 deletions
|
|
@ -1010,7 +1010,13 @@ void M2Renderer::render(VkCommandBuffer cmd, VkDescriptorSet perFrameSet, const
|
||||||
pending.push_back({entry.index, instanceFadeAlpha, needsBones, targetLOD});
|
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
|
// Sort by targetLOD so each sub-group occupies a contiguous SSBO range
|
||||||
std::sort(pending.begin(), pending.end(),
|
std::sort(pending.begin(), pending.end(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue