Thank you. I am not sure why the game lags so much, but I found out that after 5-30s the lag will mostly dissappear. I will try to optimize the game as much as possible.
Yeah, for some reason the original version (https://pxldev.itch.io/a-dungeon-game-made-for-ludum-dare-48) runs much better