PDA

Просмотр полной версии : [11193] Optimize visibility update and AI notification code. Optimization decreases amount of visibi


newsbot
22.02.2011, 03:40
автор: SilverIce


<pre>m src/game/Creature.cpp
m src/game/Creature.h
m src/game/GridNotifiersImpl.h
m src/game/Map.cpp
m src/game/Unit.cpp
m src/game/Unit.h
m src/game/World.cpp
m src/game/World.h
m src/mangosd/mangosd.conf.dist.in
m src/shared/revision_nr.h
</pre>
<pre style='white-space:pre-wrap;width:81ex'>[11193] Optimize visibility update and AI notification code. Optimization decreases amount of visibility and AI notification operations in 8-10 times, and as a result, lowers CPU usage by 30-40%

You need to update your config file, new "Visibility.RelocationLowerLimit" and "Visibility.AIRelocationNotifyDelay' options added

Special thanks to Ambal for code hints and advices
Thanks to Undergarun and kero99 for making tests</pre>




Дальше... (https://github.com/mangos/mangos/commit/f5d551518b96e67b7f13a6d3609fb2963be12ee6)