[particles] faster serialization using QDataStream.