Originally Posted by
User137
Imagine i would have a list of 10000 particles and particle #500 goes old for kill. What happens in TList i don't know but common behavior includes moving all 9499 list items 1 step backwards. Now, imagine these particles would be constantly spawned and killed, it would put whole cpu power in that loop, being very very slow.
What i like is control in my own hands. You only need to move index #(N-1) in position of removed item. (It may be possible to do this manually with TList too but then wouldn't it be just the same using dynamic array?)
Bookmarks