これを行うためのより速い方法はありますか?
Vector3* points = malloc(maxBufferCount*sizeof(Vector3));
//put content into the buffer and increment bufferCount
...
// remove one point at index `removeIndex`
bufferCount--;
for (int j=removeIndex; j<bufferCount; j++) {
points[j] = points[j+1];
}
私は非常に頻繁に要素を削除する巨大なバッファを持っているので、私は尋ねています。