8000 Abnormally high CPU usage while doing nothing · Issue #142 · brainiac/MQ2Nav · GitHub
[go: up one dir, main page]

Skip to content

Abnormally high CPU usage while doing nothing #142

Open

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.

Activity

  1. brainiac commented on Nov 23, 2023

    @brainiac
    Owner

    are you playing on the test server?

  2. HK47196 commented 4FC8 on Nov 23, 2023

    @HK47196
    Author

    Only time I use MQ is on FV.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      0