-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
EQ process CPU usage goes up dramatically when mq2nav is merely loaded, no pathfinding is happening.
It doesn't happen at the character select screen while mq2nav is loaded. It doesn't happen when first entering the world, but I can reliably make it happen just by unloading & reloading the mq2nav plugin.
Some poking around seems to point towards it being caused by the ModelLoader module, specifically, this block of code(from its OnPulse method) is being called quite frequently:
PDOORTABLE pDoorTable = (PDOORTABLE)pSwitchMgr;
if (m_loadedDoorCount != pDoorTable->NumEntries
&& pDoorTable->NumEntries > 0)
{
UpdateModels();
}I'm using a quick hack locally to limit it to one call per second, I don't understand the codebase enough to fix this.
Metadata
Metadata
Assignees
Labels
No labels