Skip to content

Conversation

@xezon
Copy link

@xezon xezon commented Oct 28, 2025

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

  • Replicate in Generals

@xezon xezon added Minor Severity: Minor < Major < Critical < Blocker Performance Is a performance concern Gen Relates to Generals ZH Relates to Zero Hour GUI For graphical user interface labels Oct 28, 2025
@xezon xezon force-pushed the xezon/optimize-replay-list branch from 7dee951 to d7957f8 Compare October 28, 2025 18:19
@xezon xezon force-pushed the xezon/optimize-replay-list branch from d7957f8 to bfc056e Compare October 31, 2025 20:01
@xezon xezon requested a review from Skyaero42 October 31, 2025 20:02
@Skyaero42 Skyaero42 added the Approved Pull Request was approved label Nov 1, 2025
@xezon
Copy link
Author

xezon commented Nov 1, 2025

Generals MapUtil file has some discrepancies. Waiting for merge #1771 before replicating this change to Generals.

@xezon xezon force-pushed the xezon/optimize-replay-list branch from bfc056e to 6ec8f40 Compare November 1, 2025 15:25
@xezon
Copy link
Author

xezon commented Nov 1, 2025

Rebased on main with conflicts.

Replicated to Generals without conflicts.

Additionally I applied while loop to for loop refactors in MapUtil.h.

@xezon xezon force-pushed the xezon/optimize-replay-list branch from 6ec8f40 to 983017d Compare November 1, 2025 17:15
@xezon
Copy link
Author

xezon commented Nov 1, 2025

Rebased again after #1767 was merged.

@xezon xezon merged commit 3c30024 into TheSuperHackers:main Nov 1, 2025
17 checks passed
xezon added a commit that referenced this pull request Nov 1, 2025
…ting the replay and map lists after they are full (#1758)
@xezon xezon deleted the xezon/optimize-replay-list branch November 1, 2025 17:26
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

Labels

Approved Pull Request was approved Gen Relates to Generals GUI For graphical user interface Minor Severity: Minor < Major < Critical < Blocker Performance Is a performance concern ZH Relates to Zero Hour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants