forked from electronicarts/CnC_Generals_Zero_Hour
-
Notifications
You must be signed in to change notification settings - Fork 121
perf(gui): Eliminate expensive and unnecessary processing when populating the replay and map lists after they are full #1758
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7dee951 to
d7957f8
Compare
Skyaero42
requested changes
Oct 28, 2025
GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/ReplayMenu.cpp
Show resolved
Hide resolved
d7957f8 to
bfc056e
Compare
Skyaero42
approved these changes
Oct 31, 2025
Author
|
Generals MapUtil file has some discrepancies. Waiting for merge #1771 before replicating this change to Generals. |
bfc056e to
6ec8f40
Compare
Author
|
Rebased on main with conflicts. Replicated to Generals without conflicts. Additionally I applied while loop to for loop refactors in MapUtil.h. |
…ting the replay and map lists after they are full (#1758)
6ec8f40 to
983017d
Compare
Author
|
Rebased again after #1767 was merged. |
xezon
added a commit
that referenced
this pull request
Nov 1, 2025
…ting the replay and map lists after they are full (#1758)
fbraz3
pushed a commit
to fbraz3/GeneralsX
that referenced
this pull request
Nov 10, 2025
…ting the replay and map lists after they are full (TheSuperHackers#1758)
fbraz3
pushed a commit
to fbraz3/GeneralsX
that referenced
this pull request
Nov 10, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Merge with Rebase
This change eliminates expensive and unnecessary processing when populating the replay and map lists after they are full.
This was mostly noticable with the Replay list when reading replays files after the list (100) was already fully populated.
The Custom Maps list (300) was also susceptible to extra cost, but not as much because it uses the map cache.
To improve Replay Menu performance further, we also need a Replay Cache.
TODO