From f51c7c6964c62ed219fb8371636a4e8a49a3f194 Mon Sep 17 00:00:00 2001 From: "HuYingzhuo(hugo/hyzboy)" Date: Fri, 28 Jul 2023 20:41:02 +0800 Subject: [PATCH] optimized Sort() in MaterialRenderList --- CMUtil | 2 +- src/SceneGraph/MaterialRenderList.cpp | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/CMUtil b/CMUtil index 464272b3..3afa4e27 160000 --- a/CMUtil +++ b/CMUtil @@ -1 +1 @@ -Subproject commit 464272b3c156d66e6a574e5ac09e8ae08a540ecc +Subproject commit 3afa4e27e9cf444c4d6c875d41ab4a25d7454980 diff --git a/src/SceneGraph/MaterialRenderList.cpp b/src/SceneGraph/MaterialRenderList.cpp index 6baac630..10607353 100644 --- a/src/SceneGraph/MaterialRenderList.cpp +++ b/src/SceneGraph/MaterialRenderList.cpp @@ -90,11 +90,7 @@ void MaterialRenderList::Add(Renderable *ri,const Matrix4f &mat) void MaterialRenderList::End() { //排序 - { - Comparator rnc; - - Sort(rn_list.GetArray(),&rnc); - } + Sort(rn_list.GetArray()); const uint node_count=rn_list.GetCount();