Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for Asset Streaming #8530

Open
rayanmargham opened this issue May 2, 2023 · 1 comment
Open

Add Support for Asset Streaming #8530

rayanmargham opened this issue May 2, 2023 · 1 comment
Labels
A-Assets Load files from disk to use for things like images, models, and sounds A-Audio Sounds playback and modification A-Rendering Drawing game state to the screen C-Enhancement A new feature

Comments

@rayanmargham
Copy link

What problem does this solve or what need does it fill?

Currently bevy loads images all into ram, this is fine for projects that don't use huge image sizes but for projects that load huge images (4k-8k textures) this isn't viable as ram usage can go up to 300mb PER image.

What solution would you like?

Add support for streaming image data live. I'm not sure how'd that look like as I'm not very competent with how bevy works at the backend.

@rayanmargham rayanmargham added C-Enhancement A new feature S-Needs-Triage This issue needs to be labelled labels May 2, 2023
@alice-i-cecile alice-i-cecile added A-Rendering Drawing game state to the screen A-Assets Load files from disk to use for things like images, models, and sounds A-Audio Sounds playback and modification and removed S-Needs-Triage This issue needs to be labelled labels May 2, 2023
@alice-i-cecile alice-i-cecile changed the title Add Support for Image Streaming Add Support for Asset Streaming May 2, 2023
@alice-i-cecile
Copy link
Member

So, this is more broadly "asset streaming": we care about this for audio and meshes as well.

Unless we want to pursue a "read directly from disk" strategy, we instead need a just-in-time solution: predicting what assets are about to be needed, starting the asset loading process, and then dropping those handles when they're no longer needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Assets Load files from disk to use for things like images, models, and sounds A-Audio Sounds playback and modification A-Rendering Drawing game state to the screen C-Enhancement A new feature
Projects
Status: Open
Development

No branches or pull requests

2 participants