Open PaulGao96 opened 1 year ago
I found the reason. Looking through the entities source code, I found this:
internal const long k_MaximumEntitiesPerWorld = 128L * 1024L * 1024L; // roughly 128 million Entities per World, maximum
The number of entities I created exceeded the limit.
Can k_MaximumEntitiesPerWorld
be set larger?
I wrote a simple test program that creates 100 entities per frame, each entity has a buffer, as follows:
I compiled the program to run on a linux server, after running for some time, it crashed after about 2e8 entities had been created, there are ~1e6 chunks and took up 22GB of RAM, but my linux server had 128GB of RAM. The error is as follows: (Editor: 2022.3.5f1c1 with Entities-1.0.14)
(Editor: 2021.3.11f1c2 with Entities-0.51.1-preview.21)
Why is there an error at AddEmptyChunk before the memory ran out?