The first level and the credits both lag and I'm guessing it's because those are the only levels where the portal preview recurses indefinitely. An easy fix would be to just cut off the recursion after 1 or 2 iterations.