Fix performance problem with unnecessary global message subscription

On my ESR31 branch, I've made two measurements with different replays
(both around 15000 turns).
In the first, I got around 3% performance improvement and in the second
about 7.5%. It mainly depends on how often aura changes related to the
female citizen aura happen.

This was SVN commit r16055.
This commit is contained in:
Yves 2014-12-21 01:44:00 +00:00
parent 01e2a33486
commit 71ba68e3a3

View File

@ -30,7 +30,7 @@ class CCmpVision : public ICmpVision
public:
static void ClassInit(CComponentManager& componentManager)
{
componentManager.SubscribeGloballyToMessageType(MT_ValueModification);
componentManager.SubscribeToMessageType(MT_ValueModification);
}
DEFAULT_COMPONENT_ALLOCATOR(Vision)