Instanced queries #545
SanderMertens
started this conversation in
Announcements
Replies: 1 comment 1 reply
-
That sounds a bit like a performance degradation due to |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Instanced queries introduce a number of behavior changes that will:
In practice this means that by default all terms of a query/system can be iterated as arrays, regardless of whether they are from a prefab, parent or other externally referenced entities.
The old behavior (accessing components from prefab, parent, referenced entities as pointers vs. arrays) is now available as an "instanced query" (similar to instanced rendering, where the same resource is reused for multiple instances).
It can be enabled with an "instanced" flag in
ecs_filter_dec_t
(thefilter
field inecs_query_desc_t
and thequery.filter
field inecs_system_desc_t
):or in C++:
Using
each()
in the C++ API always uses an instanced iterator.Beta Was this translation helpful? Give feedback.
All reactions