From f80e36ebd689bf17893a0f930cb5481e554d8272 Mon Sep 17 00:00:00 2001 From: Nimetu Date: Thu, 7 Jun 2018 12:59:58 +0300 Subject: [PATCH] Changed: Workaround for huge target reticle when max polygon is set to low --HG-- branch : develop --- code/ryzom/client/src/entity_cl.cpp | 2 ++ code/ryzom/client/src/init_main_loop.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/code/ryzom/client/src/entity_cl.cpp b/code/ryzom/client/src/entity_cl.cpp index 98d4c619c..30514fb95 100644 --- a/code/ryzom/client/src/entity_cl.cpp +++ b/code/ryzom/client/src/entity_cl.cpp @@ -3055,6 +3055,7 @@ void CEntityCL::updateVisiblePostPos(const NLMISC::TTime &/* currentTimeInMs */, if (!instance.empty()) { _SelectionFX.cast (instance); + _SelectionFX.setLoadBalancingGroup("SelectionFx"); if (_SelectionFX.empty()) { // shape found, but not a particle system @@ -3083,6 +3084,7 @@ void CEntityCL::updateVisiblePostPos(const NLMISC::TTime &/* currentTimeInMs */, if (!instance.empty()) { _MouseOverFX.cast (instance); + _MouseOverFX.setLoadBalancingGroup("SelectionFx"); if (_MouseOverFX.empty()) { // shape found, but not a particle system diff --git a/code/ryzom/client/src/init_main_loop.cpp b/code/ryzom/client/src/init_main_loop.cpp index cce91b5ba..910c454d0 100644 --- a/code/ryzom/client/src/init_main_loop.cpp +++ b/code/ryzom/client/src/init_main_loop.cpp @@ -593,6 +593,8 @@ void initMainLoop() Scene->setGroupLoadMaxPolygon("Skin", ClientCfg.SkinNbMaxPoly); Scene->setGroupLoadMaxPolygon("Fx", ClientCfg.FxNbMaxPoly); Scene->setMaxSkeletonsInNotCLodForm(ClientCfg.NbMaxSkeletonNotCLod); + // separate group for mouse/target selection reticle + Scene->setGroupLoadMaxPolygon("SelectionFx", 10000); // enable Scene Lighting Scene->enableLightingSystem(true); Scene->setAmbientGlobal(CRGBA::Black);