ZeroCool940711 / Sandbox-Game-Engine

GNU General Public License v3.0
4 stars 1 forks source link

Worldeditor leaking memory. #34

Open ZeroCool940711 opened 5 years ago

ZeroCool940711 commented 5 years ago

Doing a Full Save (Ctrl+Alt+S) can not be completed on big terrain as the WorldEditor leaks memory and after some time it just reaches the max memory it can allocate (3.5-4GB) and it crashes without completing the save, shadows and lighting can not be calculated without doing a full save, the solution is to fix the memory leak and/or add options to calculate the shadows and lighting independently. The Project View page is also leaking memory on big terrains, the normal behavior should be that after certain amount of chunks loaded in memory it discards the old ones and free memory for the new chunks but instead what it does is that it keeps loading chunks without discarding any of the old one and after some point it freezes and crashes or it asks you what to do as it is almost reaching the memory limit, after you save manually it some times free some memory, some times it doesn't free memory and it just crashes right away.