reimplement particle-system using packed structs