amethyst / amethyst/legion

ComponentSource only support 128 components because ArchetypeWriter use u128 to store claimed.

Open
#263 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.7k
Forks
140
PR merge metrics
No merged PRs in 30d

Description

```rust
pub struct ArchetypeWriter<'a> {
arch_index: ArchetypeIndex,
archetype: &'a mut Archetype,
components: MultiMut<'a>,
claimed: u128,
initial_count: usize,
}
```
ArchetypeWriter only counts at most 128 components, but this limit does not exist if using entry.add_component.
Could clamied be extended to a slice or something else?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.