Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GetGizmos Performance #26

Merged
merged 1 commit into from
Apr 25, 2021
Merged

Conversation

KongMD-Steam
Copy link
Contributor

The GetGizmos() Postfix was causing some lag spikes in my game (see screenshot) when a pawn was selected. The reason for this is because with the Simple Sidearms code, the game has to evaluate all of a pawn's gizmos and create a new List() with those Gizmos.

This update to the postfix changes that behavior so that the Simple Sidearms gizmo is added to the existing list, without evaluating the contents of the Gizmo List (which is the expensive part). See below screenshots for comparison.

Before:
Before GetGizmos Fix

After:
After GetGizmos Fix

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