Skip to content

Abnormally high CPU usage while doing nothing #142

@HK47196

Description

@HK47196

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions