Skip to content

Conversation

@DR-Seal
Copy link

@DR-Seal DR-Seal commented Dec 18, 2025

Within gamemodes such as Mann vs. Machine, on a listen server, notable hitching occurs when bots spawn in this is due to GenerateRandomItem which does a big lookup to find the item it wants to spawn. This pull request implements GenerateItem which follows the same rules but avoids the lookup by specifying the name directly which avoids that hitching.

Implements GenerateItem which works closely to GenerateRandomItem however doesn't have to do a bunch of lookups for the item allowing the user to directly specify the item name directly
@HyperionCoding
Copy link

Related PR #887

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants