Comments (3)
We need an async / streaming abstraction for assets, but Reader
may not be the right design. I'm currently inclined to ship with this for now, and then build out the right one once the rough edges become clearer.
from bevy.
this is true for any asset reader that could work on a stream, it could make sense for large files on native too
from bevy.
I'm just sharing my personal thoughts on it, maybe it will be interesting for others and exciting ideas will arise from it.
I see both sides, on the one hand it can of course limit options to stream bytes for example with an http request that does not support seek, on the other side I think it is really handy in some cases to have the AsyncSeek
implementation, like seeking inside a file when only a specific region is needed.
I don't think AsyncSeek
will be used often when loading assets in source format, but rather in processed assets. I think that in the future we also want to make it possible for different source assets to be processed with different asset processors, depending on which platform you are on. For example, on platforms that don't support seeking, we could split a large file into several files instead of seeking inside a big one.
Of course, we would still have the problem that all custom readers still have to implement the AsyncSeek
trait. For me it feels wrong to have to implement dummy functions for all readers that don't support seeking. I think it would be good if the reader had a function from which you could possibly query optional seek functionality.
Maybe it's the wrong approach to have the seek functionality in the reader, but in my personal opinion it feels pretty intuitive :)
from bevy.
Related Issues (20)
- TrackedRenderPass::wgpu_pass may compromize invariants
- Add `bevy-cpal` crate to `bevy-audio` HOT 2
- Fluent builder methods for bevy_reflect ParsedPaths. HOT 1
- duplicate_vertices silently consumes indices
- Allow external plugins to intervene more deeply in the rendering process of Sprite (Mesh2d).
- bevy_reflect::List::iter wraps silently on release
- Window despawns during Update schedule
- Bevy can't render default shapes if `bevy_render` has `shader_format_glsl` enabled. HOT 8
- Bevy panics when running empty scene
- Update `ui_test` to 0.23.0
- Make `bevy_time` optionally depend on `bevy_reflect` HOT 1
- Removing image crate from wasm builds
- `PlaneMeshBuilder` should include a configurable amount of subdivision for the mesh HOT 3
- Main branch fails to compile on Rust beta. HOT 2
- Mesh2d improvements tracking issues
- Remove `check-cfg` when Rust 1.80 is released
- `ci setup` command
- transmission renders black on macOS HOT 1
- OwningPtr should impl From<Box<T>> HOT 2
- Implement `remove_by_id` on EntityWorldMut HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bevy.