01-07-2021, 10:36 AM
(This post was last modified: 01-07-2021, 10:37 AM by josemendez.)
Thanks for sharing this! we don't preallocate in this case to keep baseline memory usage at a minimum (specially on mobile platforms), since the array is allocated for every particle, and many don't have any collisions during most frames. Haven't profiled it in detail though. Will try and find a good compromise between memory and performance, maybe 8 or 16 is good enough.