optimized Sort() in MaterialRenderList

This commit is contained in:
HuYingzhuo(hugo/hyzboy) 2023-07-28 20:41:02 +08:00
parent 3fe8d9f90d
commit f51c7c6964
2 changed files with 2 additions and 6 deletions

2
CMUtil

@ -1 +1 @@
Subproject commit 464272b3c156d66e6a574e5ac09e8ae08a540ecc Subproject commit 3afa4e27e9cf444c4d6c875d41ab4a25d7454980

View File

@ -90,11 +90,7 @@ void MaterialRenderList::Add(Renderable *ri,const Matrix4f &mat)
void MaterialRenderList::End() void MaterialRenderList::End()
{ {
//排序 //排序
{ Sort(rn_list.GetArray());
Comparator<hgl::graph::RenderNode> rnc;
Sort(rn_list.GetArray(),&rnc);
}
const uint node_count=rn_list.GetCount(); const uint node_count=rn_list.GetCount();