junkdog / artemis-odb

A continuation of the popular Artemis ECS framework
BSD 2-Clause "Simplified" License
776 stars 111 forks source link

artemis-odb 2.0.0 - getting rid of PackedComponents #422

Closed junkdog closed 8 years ago

junkdog commented 8 years ago

not as dramatic as it sounds; I'm retiring PackedComponent/PackedWeaver - it shouldn't affect anyone's code. so, if anyone depends on packed components, let me know. but overall, they're problematic, even if we solve the performance problems. It's wiser to focus on what works.

junkdog commented 8 years ago

work is ongoing on the inaptly named branch, why-play-it-safe. (it started off as something else)

junkdog commented 8 years ago

work is ongoing on the inaptly named branch, why-play-it-safe. (it started off as something else)

merged with master

JesseTG commented 8 years ago

Will there still be some way to do singleton components (e.g. as a sort of tag)?

junkdog commented 8 years ago

Best you can do is:

@PooledWeaver
public final class Culled extends Component {
}

It's ~20 bytes per entity, but it's memory which is never read.