From 4395a92c354cf9ff2a1516df1ab4545588f78e12 Mon Sep 17 00:00:00 2001 From: elsid Date: Sun, 10 Mar 2019 19:08:30 +0300 Subject: [PATCH] Use display list to render navmesh Slightly improves performance of massive navmesh rendering. --- components/sceneutil/detourdebugdraw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/sceneutil/detourdebugdraw.cpp b/components/sceneutil/detourdebugdraw.cpp index a0ae67dc29..046bbb08cf 100644 --- a/components/sceneutil/detourdebugdraw.cpp +++ b/components/sceneutil/detourdebugdraw.cpp @@ -102,7 +102,7 @@ namespace SceneUtil osg::ref_ptr geometry(new osg::Geometry); geometry->setStateSet(stateSet); - geometry->setUseDisplayList(false); + geometry->setUseDisplayList(true); geometry->setVertexArray(mVertices); geometry->setColorArray(mColors, osg::Array::BIND_PER_VERTEX); geometry->addPrimitiveSet(new osg::DrawArrays(mMode, 0, static_cast(mVertices->size())));