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

Cache CreditsLine entries #925

Merged
merged 2 commits into from
May 17, 2018
Merged

Cache CreditsLine entries #925

merged 2 commits into from
May 17, 2018

Conversation

dedmen
Copy link
Contributor

@dedmen dedmen commented May 17, 2018

cba_help_fnc_setCreditsLine is the major lag cause when opening the Pause menu.
arma3_x64_2018-05-17_20-33-03
This is a very simple fix to get rid of that.
Scanning all CfgPatches entries everytime a player presses Escape wasn't a good idea in the first place.

The entire frame is 60.5 ms and CBA creditsLine is 35ms of that. And it get's worse the more mods you have.

@commy2 commy2 added this to the 3.7.1 milestone May 17, 2018
@commy2
Copy link
Contributor

commy2 commented May 17, 2018

I love you.

@commy2 commy2 merged commit 9b24ae3 into CBATeam:master May 17, 2018
@@ -29,11 +29,7 @@ if (CBA_DisableCredits) exitWith {};

// find addon with author
private _config = configFile >> "CfgPatches";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is also now obsolete... _config never get used in that script.

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.

None yet

3 participants