optimized Sort() in MaterialRenderList
This commit is contained in:
parent
3fe8d9f90d
commit
f51c7c6964
2
CMUtil
2
CMUtil
@ -1 +1 @@
|
||||
Subproject commit 464272b3c156d66e6a574e5ac09e8ae08a540ecc
|
||||
Subproject commit 3afa4e27e9cf444c4d6c875d41ab4a25d7454980
|
@ -90,11 +90,7 @@ void MaterialRenderList::Add(Renderable *ri,const Matrix4f &mat)
|
||||
void MaterialRenderList::End()
|
||||
{
|
||||
//排序
|
||||
{
|
||||
Comparator<hgl::graph::RenderNode> rnc;
|
||||
|
||||
Sort(rn_list.GetArray(),&rnc);
|
||||
}
|
||||
Sort(rn_list.GetArray());
|
||||
|
||||
const uint node_count=rn_list.GetCount();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user