Comments (2)
Prepare systems are expected to be called every frame. Creating bind groups is not particularly expensive and in bevy itself a lot of bind groups can change dynamically so it's easier to just always recreate them. Also, if a bind group is on an entity instead of a resource, since the render world recreates all entities every frame we need to recreate the bind groups every frame or store them somewhere else.
The code in examples is only the minimal code required to make something work. You could add code to control whether or not you want to create a bind group, that's completely up to you.
from bevy.
Thank you for the explanation!
from bevy.
Related Issues (20)
- `bevy_render::Frustum` should live in `bevy_math` HOT 5
- Audio Sink Creation Delayed and Multiple Sinks Spawned HOT 1
- Observers don't trigger for Sparse components HOT 1
- Main branch fails to compile on Rust beta: doc list item missing indentation HOT 3
- Change detection of keyboard's resource `ButtonInput` is inconsistent
- Rapid repeated animation transitions break animation HOT 3
- Explain the pros and cons of each anti-aliasing technique HOT 1
- Add dependencies list for Gentoo Linux.
- Add resources for accumulated mouse motion and mouse scroll HOT 5
- `IntoSystemSetConfigs::chain_ignore_deferred` has wrong return type
- Lossy parse log filter if it comes from env variable
- Bevy `StateTransitionSteps` set is registered in app methods instead of states plugin HOT 1
- Custom material importing function error HOT 2
- REGRESSION: wgpu panic `BadDisplay` after winit 0.30 on Wayland OpenGL HOT 1
- Replace `RemovedComponents` with observers
- Placeholder: Clean up remaining primitives in bevy_render HOT 1
- World::inspect_entity should return an iterator, not Vec
- Add `EntityCommands::observe_self` for easier self-targeting observers HOT 6
- Add i64 and u64 implementations for bevy_render::render_resource::ShaderType HOT 1
- CI tasks `check-compiles` and `build` could use better names 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.