Primitive compression