8000 Query caching? (Performance) · Issue #22 · csprance/gecs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Query caching? (Performance) #22
Closed
@RafaelVidaurre

Description

@RafaelVidaurre

First of all, thanks for the great addon, this looks very well architected and seems to be one of the only options available for implementing ECS in Godot.

I did some experiments and noticed that queries have a huge overhead performance-wise.

My question is, do you have any plans, or see any potential route for optimizing queries more? E.g. caching entities that match a query and keeping that cache up to date preemptively (e.g. when an entity is added to the world / when components of an entity are modified).

EDIT:
Another approach would be to index Archetypes instead of entities per component

Thanks again!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0