Skip to content

Add support for lazy texture loading#163

Open
iProgramMC wants to merge 2 commits into
ButterscotchRunner:mainfrom
iProgramMC:lazy-texture-load
Open

Add support for lazy texture loading#163
iProgramMC wants to merge 2 commits into
ButterscotchRunner:mainfrom
iProgramMC:lazy-texture-load

Conversation

@iProgramMC

Copy link
Copy Markdown
Contributor

This should help alleviate some memory usage concerns on platforms with less than, like, 128 MB of usable RAM. Previous versions were holding the compressed asset data in memory in a useless manner. (rarely do you need to reuse a Texture's blobData after you already load the texture into memory)

This isn't an important or necessary memory allocation as BinaryReader
supports just reading from the file in question, so the allocation
failing isn't exactly "fatal".
This helps with memory usage on systems with less memory.
@Un1q32

Un1q32 commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Can you rebase this on master and rename the cli option please

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.

2 participants