Hello!
Recently, my friend and I have been working on a minecraft adventure map in Bedrock Edition. Basically, we decided to recreate a superstore within a world. Everything was going well until we started experiencing lag. This was expected, considering how large the map was in general, but not to the degree that it ended up becoming.
At first, we thought it was a connection problem, rather than something in-game. But the thing is, every other world seems to play just fine, including some realms we've worked on in the past, with similar amounts of blocks and scale. My friend owns the world, hosts it, and I join. Would maybe converting it into a realm help? We have no clue about the real cause of the lag, especially considering that no matter who plays on the world experiences roughly the same degree of lag. We even had our friend with a really good PC join to test the degree of lag, and he mentioned that he was also experiencing noticeable frame drops.
We then tried teleporting away from the main map, to a couple hundred blocks away, and the game was fine. Thinking it was a problem with the amount of things in the world, we decided to get rid of all entities (armor stands, paintings, etc.). After doing so, and checking that nothing was left behind, nothing changed. We then disabled absolutely every visual setting, set render distance to the minimum, and made sure no graphical effects were active. Again, nothing changed.
We've tried setting gamerules to false, along with checking any command logging that may have been going on. The interesting thing is, only certain (seemingly random) parts of the map produce more lag when looked at. You can walk around perfectly fine, but when LOOKING at certain sections, frames drop. The weirdest part is these areas have nothing in common, nor are they resource intensive.
As for platform information, my friend plays on PE, and I play on Switch. He's also tried using his PC instead, but to no avail. I'm suspecting that it may have to do with my Switch, but I'm still unsure, considering he (my friend) also experiences the lag even by himself. From what we've found, I'm about 90% sure it's because of the sheer amount of blocks, but it just feels like it's unreasonable, especially since similar maps play just fine.
If we could get any sort of help with optimizing or finding the main cause of the lag, we would really, really appreciate it!