Comments (2)
Is it necessary to call query on every frame tick if there are no changes since the last frame, and many other previous frames?
When you say changes, do you mean add/removeComponent
changes? Or a direct data manipulation component.data[eid] = 3
type of change?
Assuming you meant add/removeComponent
, then you don't have to worry. Queries are cached and incrementally updated when components are added/removed. Calling the query simply passes back an array, it doesn't do any filtering.
from bitecs.
Wow, thanks! That's what I exactly meant! (add/removeComponent).
You're doing very useful work with BitECS. Thanks!
from bitecs.
Related Issues (20)
- How to define two-dimensional array aka matrix? HOT 2
- Query operators HOT 2
- addComponent with initial value HOT 2
- null entity id HOT 1
- Serialize/Deserialize a single entity with components? HOT 1
- query for newly added Component
- Resizing smaller than the defaultSize always errors
- getEntityComponents does not return component name HOT 1
- How to push / pop from a list? HOT 1
- Query for mixed composition with Change HOT 1
- Could not find declaration file for module 'bitecs' HOT 1
- defineComponent size not respected
- How to get MAX number for the current type? HOT 1
- Please publish a new version HOT 2
- Missing `readonly` in ComponentType
- Component sizes, multiple worlds HOT 1
- provide ablity to check whether component field addresses eid HOT 2
- Using `Changed` on tag components breaks deserialization HOT 1
- hasComponent issue when component was added through a Proxy
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 bitecs.