MG1/2 | MGS3: Add patches to extend texture buffer size #39
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.
Fixes #15
Allows extending the temporary texture buffer that both MG1/2 & MGS3 seem to use, allowing larger texture files to be loaded into the game.
Seems MGS2 doesn't use this kind of temporary buffer, all the same CTexture/CBaseTexture code is there but the code around this temporary buffer stuff is missing, weird (maybe after they worked on MGS2 they added this buffer trick as an optimization during MGS3 work, but then forgot to backport it to MGS2, who knows)
MG1/2 does include the same buffer code but doubtful it can make much difference there, still added it just in case someone wants to use a 50MB intro logo or something :P
Haven't tried comparing memory usage with this yet, AFAIK it should only be allocing the main buffer once per session, so would add 128 - 16 = ~112MB extra usage, there is that weird mip count part which I'm not sure of though, maybe would increase it more.
One small worry with this is that it's kinda tying data files with HDFix, if you installed HDFix along with a larger-than-16MB texture pack, removing HDFix while keeping the texture pack files would cause crashing in the vanilla game...
Can't really see much way to get around that though, and guess users can always verify files in steam to fix it, so maybe not a huge problem.