As the title explains, I am having a bit of an issue with respawn and teleport lag on my realm. Usually I have no problem with it, but in one specific world I am making a mini game that I hope to submit to Mojang to get accepted as an official realm mini game. The game works great for the most part and there isn't really any performance issues or lag during the game, but when you respawn after dying or teleport to the starting area, it causes a ton of lag; like 10-30 seconds worth where you can't move at all or do anything. Sometimes it even crashes the game. The spawn lobby and the actual game arena are 1000 blocks away from each other, so this might be the issue, but I usually don't have any issue with respawning after dying thousands of blocks away in a survival world or something. I even tried forceloading both areas so that the chunks don't have to render after you teleport, making it so that the only thing it has to do is move the player's location, but it still lags a ton. The only other reason it might lag is the command blocks, seeing as there are no entities besides a few armor stands and the players, but every mini game uses command blocks, and if it were an issue with the command blocks, then it would lag all the time, rather than just when you teleport or respawn.
Anyone know if this is an issue on my side or if it's maybe just a bug with realms? If so, how do I fix this? I'd appreciate any help! Thanks!