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.
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.

1 participant