the old implementation returns the amound of primitives fit into index buffers but also gc needs more than one index per primitve
the old implementation returns the amound of primitives fit into index buffers but also gc needs more than one index per primitve