PDA

Просмотр полной версии : [12240] Create DynTree in map and store gameobject collision modells in it


newsbot
04.11.2012, 01:30
Автор: SilverIce


<pre>m src/game/GameObject.cpp
m src/game/Map.cpp
m src/game/Map.h
m src/shared/revision_nr.h
</pre>
<pre style='white-space:pre-wrap;width:81ex'>[12240] Create DynTree in map and store gameobject collision modells in it

Code heavily modified by Subv. Also thanks to Reamer and Cyberium for porting!

Performance TODO Note:
"rebalance the tree at each grid loading - it's still a dirty way of performance improving, need split map into few trees"
Note to note: I removed the balancing at grid loading, balancing is also done on timer, and i think balancing shortly after grid loading is better choice to not make the bottle-neck "grid-loading" harder
However real perfomrmance improvement is only reasonable after strong performance analysis

Signed-off-by: Schmoozerd <schmoozerd@cmangos></pre>


Подробнее... (https://github.com/cmangos/mangos-wotlk/commit/b59d0b4b55127cfb3ad92700c59f53054592a3c1)