feat(filesystem): Recover 481 higher resolution textures in Zero Hour by re-prioritizing textures by size#1484
Merged
xezon merged 8 commits intoTheSuperHackers:mainfrom Oct 18, 2025
Conversation
|
i really loved this |
|
Yeah, much better! |
Skyaero42
requested changes
Oct 12, 2025
GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DFileSystem.cpp
Show resolved
Hide resolved
dd7987a to
c199d7f
Compare
c199d7f to
52d5e06
Compare
Author
|
Rebased. |
Author
|
Replicated in Generals with conflicts. Code is disabled in Generals because it is of no use for the retail game. I have revisited the Zero Hour implementation because I came to the conclusion that we should not change the default overwrite behavior of textures with this change. It would raise eyebrows if some (larger) textures are overwriting while others are not. To mitigate this issue, I have restricted the reprioritization of textures to the original Textures.big and TexturesZH.big archives, so that this change specifically targets the retail game setup and not Mods. |
Author
|
|
Still approved |
fbraz3
pushed a commit
to fbraz3/GeneralsX
that referenced
this pull request
Nov 10, 2025
… by re-prioritizing textures by size (TheSuperHackers#1484)
fbraz3
pushed a commit
to fbraz3/GeneralsX
that referenced
this pull request
Feb 23, 2026
… by re-prioritizing textures by size (TheSuperHackers#1484)
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
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.
This change marks the first use case for tinkering with shadowed files and recovers 481 higher resolution textures in Zero Hour by re-prioritizing textures by size on game startup.
This was implemented by directly reordering the texture order inside the multimap on game start - as opposed to testing each file instance on texture loading for the largest texture size. This was done to favor level load performance over game startup performance.
It should be pretty fast though.
Original Zero Hour
The football stadium using downscaled Zero Hour textures.
Zero Hour with this change
The football stadium using higher resolution Generals textures.
The re-prioritized textures are
Attached as a TXT file because of its size.
log.txt
TODO