• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mlange-42 / arche / 7464066922
100%

Build:
DEFAULT BRANCH: main
Ran 09 Jan 2024 04:38PM CUT
Jobs 1
Files 30
Run time 4s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Jan 2024 04:37PM CUT coverage: 100.0%. Remained the same
7464066922

push

github

web-flow
Extend to a maximum of 256 component types (#313)

Rework `Mask` to hold an array of 4 x `uint64` to represent 256 bits. Everything else comes into place almost by itself.

Alternative to #312:

- `Filter.Match` takes a mask pointer as argument
- `Mask` is copied when using as a filter (is pointer receiver in #312)

Primarily avoids `All(ids...)` either returning a pointer, or requiring users to store the result (temporarily) to be able to get a pointer to it.

Performance remains unchanged, except that `MaskFilter` matches are about 3 times slower (i.e. filters with component inclusion and exclusion). Not sure why, as the mask functions used there are as fast as before.

## Commits

* Extend to a maximum of 256 component types
* fix IdMap for 265 possible IDs
* filters match against pointer to mask, to avoid copying
* minor optimization: check for zero mask at end of MaskFilter conditions
* make internal Mask representation private
* update changelog and readme

3835 of 3835 relevant lines covered (100.0%)

83072.29 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7464066922.1 09 Jan 2024 04:38PM CUT 30
100.0
GitHub Action Run
Source Files on build 7464066922
  • Tree
  • List 30
  • Changed 14
  • Source Changed 8
  • Coverage Changed 3
Loading...
Coverage∆FileLinesRelevantCoveredMissedHits/Line
100.0
ecs/archetype_node.go264 183 183 0 220617.0 + 6
100.0
ecs/archetypes.go91 37 37 0 16309.0 + 10
100.0
ecs/batch.go114 27 27 0 2781.0
100.0
ecs/bitmask.go116 - 361 61 0 65270.0 - 6260
100.0
ecs/bitset.go45 28 28 0 1068301.0
100.0
ecs/builder.go124 73 73 0 5467.0
100.0
ecs/cache.go157 84 84 0 1733.0
100.0
ecs/config.go33 14 14 0 52.0
100.0
ecs/entity.go41 9 9 0 116947.0 - 3
100.0
ecs/archetype.go374 241 241 0 579433.0 + 7
Showing 1 to 10 of 30 entries
  • Previous
  • 1
  • 2
  • 3
  • Next
  • ►
    100.0
    ecs/
  • ►
    100.0
    filter/
  • ►
    100.0
    generic/
  • Back to Repo
  • Github Actions Build #7464066922
  • 4c0b1b32 on github
  • Prev Build on main (#6823343272)
  • Next Build on main (#7478583814)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc