Skip to content

Components Efficiency - Change Component from Node to Resource #29

@amitnos123

Description

@amitnos123

For example, SelectableComponent is currently a node.
Each new BaseEntity with SelectableComponent would need to create a new SelectableComponent for each.

The resource is cached in memory, so it won't need to load the component for every entity.

I think it's a good idea to tackle this early, and still not have a lot of dependence on components.

To be clear, I may have misunderstood how Godot loads nodes.

I would like to get feedback on the idea.
Also, please correct me, if I got something wrong

Godot Engine 4.3 - Tutorials Resources
Godot Engine 4.3 - Class Resources

p.s:
I can't add labels and types for the issue.
I wanted to add this as a suggestion.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions