bradyrussell / marchingcubesterrainplugin

A UE4 plugin that provides infinite procedural terrain
https://github.com/bradyrussell/marchingcubesterrainplugin
4 stars 3 forks source link

No space in chunk array for new chunk #52

Closed bradyrussell closed 3 years ago

bradyrussell commented 4 years ago

This is becoming a frequent problem. Need to figure out how to stop this

bradyrussell commented 4 years ago

issues #41 and #44 are most likely this

bradyrussell commented 4 years ago

Seems to happen in situations where i am loading in a large number of new regions, seems to me like ungenerated regions are most likely to trigger it. teleporting to a completely ungenerated region almost always causes it with a view distance of 5

bradyrussell commented 4 years ago

Need to check if: teleporting to generated place is different than ungenerated flushing before teleport makes a difference

bradyrussell commented 3 years ago

this may be an issue of me trying to use too high a memory limit. upon testing with 256 M , nothing gets paged out before this occurs. with 64M it seems to remain around 1024 regions paged in

bradyrussell commented 3 years ago

this is gonna cause issues with lots of players online however, as even a single player can easily page in 8^3 regions and thats not a very far view distance

bradyrussell commented 3 years ago

well now it seems to no longer stay at 1024 since e099951 im pretty confused as I am still using 64 mb

bradyrussell commented 3 years ago

seems to crash around the high 3000s of regions loaded.

bradyrussell commented 3 years ago

to clarify, earlier i changed the blueprint MemoryTargetMB value from default 512 to 64 and at this point the game would run just the same, but the number of paged in regions would remain at 1024 despite loading in multiple landmasses. now it seems to continue increasing the number of paged in regions until the high 3000s then crashes due to no space in chunk array

bradyrussell commented 3 years ago

tested on pre e099951 and it seems way better however after like 3 or 4k voxels out it does crash

bradyrussell commented 3 years ago

36da7dc should fix it for now